hobo_jquery 2.0.0.pre7 → 2.0.0.pre8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.pre8
|
data/lib/hobo_jquery/railtie.rb
CHANGED
metadata
CHANGED
@@ -1,54 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_jquery
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -1841658034
|
5
5
|
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- pre
|
11
|
+
- 8
|
12
|
+
version: 2.0.0.pre8
|
6
13
|
platform: ruby
|
7
|
-
authors:
|
14
|
+
authors:
|
8
15
|
- Bryan Larsen
|
9
16
|
autorequire:
|
10
17
|
bindir: bin
|
11
18
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
19
|
+
|
20
|
+
date: 2013-02-04 00:00:00 Z
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
15
23
|
name: jquery-rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '2.0'
|
22
|
-
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
|
-
requirements:
|
27
|
+
requirements:
|
27
28
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
requirements:
|
35
|
-
- - '='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.0.pre7
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 2
|
33
|
+
- 0
|
34
|
+
version: "2.0"
|
38
35
|
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: hobo_rapid
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
42
|
+
requirements:
|
43
|
+
- - "="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: -1841658034
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 0
|
50
|
+
- pre
|
51
|
+
- 8
|
52
|
+
version: 2.0.0.pre8
|
53
|
+
type: :runtime
|
54
|
+
version_requirements: *id002
|
46
55
|
description: JQuery support for Hobo
|
47
56
|
email: bryan@larsen.st
|
48
57
|
executables: []
|
58
|
+
|
49
59
|
extensions: []
|
60
|
+
|
50
61
|
extra_rdoc_files: []
|
51
|
-
|
62
|
+
|
63
|
+
files:
|
52
64
|
- .gitmodules
|
53
65
|
- LICENSE.txt
|
54
66
|
- README.markdown
|
@@ -71,8 +83,6 @@ files:
|
|
71
83
|
- vendor/assets/javascripts/hobo-jquery/hjq-live-search.js
|
72
84
|
- vendor/assets/javascripts/hobo-jquery/hjq-search-results.js
|
73
85
|
- vendor/assets/javascripts/hobo-jquery/hjq-select-many.js
|
74
|
-
- vendor/assets/javascripts/hobo-jquery/hjq-sortable-collection.js
|
75
|
-
- vendor/assets/javascripts/hobo-jquery/hjq-sortable-input-many.js
|
76
86
|
- vendor/assets/javascripts/hobo-jquery/hjq-spinner.js
|
77
87
|
- vendor/assets/javascripts/hobo-jquery/hjq.js
|
78
88
|
- vendor/assets/javascripts/hobo_jquery.js
|
@@ -81,30 +91,41 @@ files:
|
|
81
91
|
- vendor/assets/stylesheets/hobo_jquery.css
|
82
92
|
homepage: http://hobocentral.net
|
83
93
|
licenses: []
|
94
|
+
|
84
95
|
post_install_message:
|
85
|
-
rdoc_options:
|
96
|
+
rdoc_options:
|
86
97
|
- --charset=UTF-8
|
87
|
-
require_paths:
|
98
|
+
require_paths:
|
88
99
|
- lib
|
89
100
|
- vendor
|
90
101
|
- taglibs
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
103
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
110
|
+
version: "0"
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
112
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 23
|
117
|
+
segments:
|
118
|
+
- 1
|
119
|
+
- 3
|
120
|
+
- 6
|
102
121
|
version: 1.3.6
|
103
122
|
requirements: []
|
123
|
+
|
104
124
|
rubyforge_project:
|
105
|
-
rubygems_version: 1.8.
|
125
|
+
rubygems_version: 1.8.25
|
106
126
|
signing_key:
|
107
127
|
specification_version: 3
|
108
128
|
summary: JQuery support for Hobo
|
109
129
|
test_files: []
|
130
|
+
|
110
131
|
has_rdoc:
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/* hjq-sortable-collection */
|
2
|
-
(function($) {
|
3
|
-
var methods = {
|
4
|
-
init: function(annotations) {
|
5
|
-
var options = $.extend({update: methods.update}, this.hjq('getOptions', annotations));
|
6
|
-
this.sortable(options);
|
7
|
-
},
|
8
|
-
|
9
|
-
update: function() {
|
10
|
-
var that=$(this);
|
11
|
-
var annotations=that.data('rapid')['sortable-collection'];
|
12
|
-
var roptions = that.hjq('buildRequest', {type: 'post',
|
13
|
-
attrs: annotations.ajax_attrs
|
14
|
-
});
|
15
|
-
roptions.data['authenticity_token']=that.hjq('pageData').form_auth_token.value;
|
16
|
-
roptions.data=$.param(roptions.data);
|
17
|
-
that.children("*[data-rapid-context]").each(function(i) {
|
18
|
-
roptions.data = roptions.data+"&"+annotations.reorder_parameter+"[]="+$(this).hjq('contextId');
|
19
|
-
});
|
20
|
-
|
21
|
-
$.ajax(annotations.reorder_url, roptions);
|
22
|
-
return that;
|
23
|
-
}
|
24
|
-
|
25
|
-
};
|
26
|
-
|
27
|
-
|
28
|
-
$.fn.hjq_sortable_collection = function( method ) {
|
29
|
-
|
30
|
-
if ( methods[method] ) {
|
31
|
-
return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
|
32
|
-
} else if ( typeof method === 'object' || ! method ) {
|
33
|
-
return methods.init.apply( this, arguments );
|
34
|
-
} else {
|
35
|
-
$.error( 'Method ' + method + ' does not exist on hjq_sortable_collection' );
|
36
|
-
}
|
37
|
-
};
|
38
|
-
|
39
|
-
})( jQuery );
|
@@ -1,33 +0,0 @@
|
|
1
|
-
/* hjq-input-many */
|
2
|
-
(function($) {
|
3
|
-
var methods = {
|
4
|
-
init: function(annotations) {
|
5
|
-
var options = $.extend({update: methods.update}, this.hjq('getOptions', annotations));
|
6
|
-
this.sortable(options);
|
7
|
-
this.on('rapid:change', methods.update);
|
8
|
-
},
|
9
|
-
|
10
|
-
update: function() {
|
11
|
-
var that=$(this);
|
12
|
-
var annotations=that.data('rapid')['sortable-input-many'];
|
13
|
-
that.find("li:visible input.sortable-position").each(function(index) {
|
14
|
-
$(this).val(index+1);
|
15
|
-
});
|
16
|
-
return that;
|
17
|
-
}
|
18
|
-
|
19
|
-
};
|
20
|
-
|
21
|
-
|
22
|
-
$.fn.hjq_sortable_input_many = function( method ) {
|
23
|
-
|
24
|
-
if ( methods[method] ) {
|
25
|
-
return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
|
26
|
-
} else if ( typeof method === 'object' || ! method ) {
|
27
|
-
return methods.init.apply( this, arguments );
|
28
|
-
} else {
|
29
|
-
$.error( 'Method ' + method + ' does not exist on hjq_sortable_collection' );
|
30
|
-
}
|
31
|
-
};
|
32
|
-
|
33
|
-
})( jQuery );
|