romo 0.7.0 → 0.8.0
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/select.js +10 -2
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de7887965abb8975b658aac76dcc7bfa167637a
|
4
|
+
data.tar.gz: 58bcbbae45029158a8436e4d67774c225e28f15c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39a277f08d9ed14b54fb7c74cdbae966e4f55519b2cb4ab01bec57ef17afe6614c913136447c2f0001fb0b3d64d41576b58d2ef7879c10241575d953be71921e
|
7
|
+
data.tar.gz: a8201ba402798cb2d4b965a0bd9d43840f3cbfe14828ca19a7613bcee26af5497d17eb58bfd593df7c8f8dc6ef346af5c4b8563b7c03f69d83b0348293784813
|
data/assets/js/romo/select.js
CHANGED
@@ -23,11 +23,14 @@ var RomoSelect = function(element) {
|
|
23
23
|
selectedVal = '';
|
24
24
|
}
|
25
25
|
if (selectedVal !== this.elem[0].value) {
|
26
|
-
this.
|
27
|
-
this._setNewValue(selectedVal);
|
26
|
+
this.doSetValue(selectedVal);
|
28
27
|
}
|
29
28
|
}, this));
|
30
29
|
|
30
|
+
this.elem.on('select:triggerSetValue', $.proxy(function(e, value) {
|
31
|
+
this.doSetValue(value)
|
32
|
+
}, this));
|
33
|
+
|
31
34
|
this.elem.trigger('select:ready', [this]);
|
32
35
|
}
|
33
36
|
|
@@ -74,6 +77,11 @@ RomoSelect.prototype.doRefreshUI = function() {
|
|
74
77
|
this.romoSelectDropdown.elem.find('.romo-select-text').html(text);
|
75
78
|
}
|
76
79
|
|
80
|
+
RomoSelect.prototype.doSetValue = function(value) {
|
81
|
+
this.romoSelectDropdown.doSetNewValue(value);
|
82
|
+
this._setNewValue(value);
|
83
|
+
}
|
84
|
+
|
77
85
|
RomoSelect.prototype.onCaretClick = function(e) {
|
78
86
|
if (this.elem.prop('disabled') === false) {
|
79
87
|
this.romoSelectDropdown.elem.focus();
|
data/lib/romo/version.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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelly Redding
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: assert
|