hobo_jquery_ui 2.0.1 → 2.1.0.pre1
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.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6033657bb1bb6fff2d7ac4a3f2eadc9b74e7ee70
|
4
|
+
data.tar.gz: 449e2e4512e252a74e121b9f1f07246443aad865
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 04105746887503bcc7f75a2bfac9a6d2c8da1b565a1ffbcc5bfcd832d9dbcd0684e39ef40a2cb90a3e8445baa412980631dfd54eec6e667cb07abe18ddedc0ca
|
7
|
+
data.tar.gz: bb22336298c0efa958f9c547085d1990c4888a1cf426b631018e8f9ac779bb7fc161e224d2ffea3f30796523bcac83cd6da51efcb1bfef8e2e50ab23fe9f8e5e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.1.0.pre1
|
data/taglibs/autocomplete.dryml
CHANGED
@@ -35,7 +35,7 @@ Could be served by:
|
|
35
35
|
events, html_attrs = attrs.partition_hash(['create', 'search', 'open', 'focus', 'select', 'close', 'change'])
|
36
36
|
options["source"] ||= begin
|
37
37
|
complete_target = this_field_reflection.klass
|
38
|
-
complete_target.
|
38
|
+
complete_target.limit(5000).*.send(complete_target.name_attribute)
|
39
39
|
end
|
40
40
|
|
41
41
|
html_attrs["name"] ||= param_name_for_this
|
@@ -21,7 +21,7 @@ This tag assumes the controller has a `reorder` action and the model has a `posi
|
|
21
21
|
ajax_attrs, html_attrs = attrs.partition_hash(HoboRapidHelper::AJAX_CALLBACKS)
|
22
22
|
|
23
23
|
singular_name = this.member_class.name.underscore
|
24
|
-
route_method = subsite ? "reorder_#{subsite}_#{singular_name.pluralize}
|
24
|
+
route_method = subsite ? "reorder_#{subsite}_#{singular_name.pluralize}_path" : "reorder_#{singular_name.pluralize}_path"
|
25
25
|
reorder_url = send(route_method)
|
26
26
|
|
27
27
|
add_classes!(html_attrs, "sortable-collection")
|
@@ -1,13 +1,27 @@
|
|
1
|
-
/* hjq-input-many */
|
1
|
+
/* hjq-sortable-input-many */
|
2
2
|
(function($) {
|
3
3
|
var methods = {
|
4
4
|
init: function(annotations) {
|
5
5
|
var options = $.extend({update: methods.update}, this.hjq('getOptions', annotations));
|
6
6
|
this.sortable(options);
|
7
|
-
this.on('rapid:change', methods.
|
7
|
+
this.on('rapid:change', methods.countChanged);
|
8
|
+
},
|
9
|
+
|
10
|
+
countChanged: function() {
|
11
|
+
// added or removed a field
|
12
|
+
var that = $(this);
|
13
|
+
return that.hjq_sortable_input_many('updatePositions');
|
8
14
|
},
|
9
15
|
|
10
16
|
update: function() {
|
17
|
+
// fields are reordered
|
18
|
+
var that = $(this);
|
19
|
+
that.hjq_input_many('updateNames');
|
20
|
+
that.hjq_input_many('updateVisibility');
|
21
|
+
return that.hjq_sortable_input_many('updatePositions');
|
22
|
+
},
|
23
|
+
|
24
|
+
updatePositions: function() {
|
11
25
|
var that=$(this);
|
12
26
|
var annotations=that.data('rapid')['sortable-input-many'];
|
13
27
|
that.find("li:visible input.sortable-position").each(function(index) {
|
@@ -26,7 +40,7 @@
|
|
26
40
|
} else if ( typeof method === 'object' || ! method ) {
|
27
41
|
return methods.init.apply( this, arguments );
|
28
42
|
} else {
|
29
|
-
$.error( 'Method ' + method + ' does not exist on
|
43
|
+
$.error( 'Method ' + method + ' does not exist on hjq_sortable_input_many' );
|
30
44
|
}
|
31
45
|
};
|
32
46
|
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_jquery_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0.pre1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bryan Larsen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-12-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: jquery-ui-themes
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,35 +27,31 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: hobo
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - '='
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 2.0.
|
33
|
+
version: 2.1.0.pre1
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - '='
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.0.
|
40
|
+
version: 2.1.0.pre1
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: hobo_jquery
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - '='
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.0.
|
47
|
+
version: 2.1.0.pre1
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - '='
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.
|
54
|
+
version: 2.1.0.pre1
|
62
55
|
description: JQuery UI support for Hobo
|
63
56
|
email: bryan@larsen.st
|
64
57
|
executables: []
|
@@ -101,6 +94,7 @@ files:
|
|
101
94
|
- vendor/assets/stylesheets/hobo_jquery_ui.css
|
102
95
|
homepage: http://hobocentral.net
|
103
96
|
licenses: []
|
97
|
+
metadata: {}
|
104
98
|
post_install_message:
|
105
99
|
rdoc_options:
|
106
100
|
- --charset=UTF-8
|
@@ -109,22 +103,19 @@ require_paths:
|
|
109
103
|
- vendor
|
110
104
|
- taglibs
|
111
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
106
|
requirements:
|
114
107
|
- - '>='
|
115
108
|
- !ruby/object:Gem::Version
|
116
109
|
version: '0'
|
117
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
111
|
requirements:
|
120
112
|
- - '>='
|
121
113
|
- !ruby/object:Gem::Version
|
122
114
|
version: 1.3.6
|
123
115
|
requirements: []
|
124
116
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.
|
117
|
+
rubygems_version: 2.1.11
|
126
118
|
signing_key:
|
127
|
-
specification_version:
|
119
|
+
specification_version: 4
|
128
120
|
summary: JQuery UI support for Hobo
|
129
121
|
test_files: []
|
130
|
-
has_rdoc:
|