romo 0.19.9 → 0.19.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/js/romo/ajax.js +13 -3
- data/assets/js/romo/picker.js +3 -0
- data/lib/romo/version.rb +1 -1
- data/test/unit/dassets_tests.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
|
4
|
-
|
3
|
+
metadata.gz: 83d0ec2bedb12e733a86fa6d0a254dc1c07e658a
|
4
|
+
data.tar.gz: c2fab8071132f725db5672a8675beea8d1bd54b2
|
5
5
|
SHA512:
|
6
|
-
|
7
|
-
|
6
|
+
metadata.gz: 779da3ae030a76a15a52bef091ad4c1bcfe6a0527c8e6e5ca321f8b0e8449a496882961a4d7c284386dc64722b255dd4905eec9e9456370eb92782dea7af7386
|
7
|
+
data.tar.gz: 528c8ddf489a8bcb07d0e0a2e776bbcab94d49cc938fd5231239b7d03c317c21fd75a268104692dd13408e429b9e7654645cd9aa07524b275e1db406a31580ea
|
data/assets/js/romo/ajax.js
CHANGED
@@ -41,21 +41,31 @@ RomoAjax.prototype.doBindElem = function() {
|
|
41
41
|
if (this.invokeOn !== undefined) {
|
42
42
|
this.elem.on(this.invokeOn, $.proxy(this.onInvoke, this));
|
43
43
|
}
|
44
|
-
this.elem.on('romoAjax:triggerInvoke', $.proxy(this.
|
44
|
+
this.elem.on('romoAjax:triggerInvoke', $.proxy(this.onTriggerInvoke, this));
|
45
45
|
}
|
46
46
|
|
47
47
|
RomoAjax.prototype.doUnbindElem = function() {
|
48
48
|
if (this.invokeOn !== undefined) {
|
49
49
|
this.elem.off(this.invokeOn, $.proxy(this.onInvoke, this));
|
50
50
|
}
|
51
|
-
this.elem.off('romoAjax:triggerInvoke', $.proxy(this.
|
51
|
+
this.elem.off('romoAjax:triggerInvoke', $.proxy(this.onTriggerInvoke, this));
|
52
52
|
}
|
53
53
|
|
54
|
-
RomoAjax.prototype.onInvoke = function(e
|
54
|
+
RomoAjax.prototype.onInvoke = function(e) {
|
55
55
|
if (e !== undefined) {
|
56
56
|
e.preventDefault();
|
57
57
|
}
|
58
58
|
|
59
|
+
if (this.elem.hasClass('disabled') === false) {
|
60
|
+
this.doInvoke();
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
RomoAjax.prototype.onTriggerInvoke = function(e, data) {
|
65
|
+
if (e !== undefined) {
|
66
|
+
e.stopPropagation();
|
67
|
+
}
|
68
|
+
|
59
69
|
if (this.elem.hasClass('disabled') === false) {
|
60
70
|
this.doInvoke(data);
|
61
71
|
}
|
data/assets/js/romo/picker.js
CHANGED
@@ -277,15 +277,18 @@ RomoPicker.prototype._bindAjax = function() {
|
|
277
277
|
|
278
278
|
this.elem.on('romoAjax:callStart', $.proxy(function(e, data, romoAjax) {
|
279
279
|
this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStart', []);
|
280
|
+
return false;
|
280
281
|
}, this));
|
281
282
|
this.elem.on('romoAjax:callSuccess', $.proxy(function(e, data, romoAjax) {
|
282
283
|
this.filteredOptionItems = data;
|
283
284
|
this._setListItems(this.filteredOptionItems.concat(this._buildCustomOptionItems()));
|
284
285
|
this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStop', []);
|
286
|
+
return false;
|
285
287
|
}, this));
|
286
288
|
this.elem.on('romoAjax:callError', $.proxy(function(e, xhr, romoAjax) {
|
287
289
|
this._setListItems(this.defaultOptionItems.concat(this._buildCustomOptionItems()));
|
288
290
|
this.romoOptionListDropdown.elem.trigger('romoOptionListDropdown:triggerFilterIndicatorStop', []);
|
291
|
+
return false;
|
289
292
|
}, this));
|
290
293
|
|
291
294
|
this.elem.romoAjax();
|
data/lib/romo/version.rb
CHANGED
data/test/unit/dassets_tests.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-10-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|