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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 80bb563a5c206ef832a1c752c4f34573319444c4
4
- data.tar.gz: c839b2c9ca9e2e2a107a98d0e583bad80be67f58
3
+ metadata.gz: 5de7887965abb8975b658aac76dcc7bfa167637a
4
+ data.tar.gz: 58bcbbae45029158a8436e4d67774c225e28f15c
5
5
  SHA512:
6
- metadata.gz: dc35da401f4d2febd851bdac968e0ad4cf9aef45d5ae17ecf2d312be6643302e72faa445c693b1d5aafb7b3555ae718d723a843285a013e89d795fd2d9472861
7
- data.tar.gz: 0c6655dec96a8a07a0004b56d924b35bfd5113d14514ffd08ebf3f6feea534396f10295f3004e9088af876e62e8dcb45ee88be623497b185512f21b6676c083a
6
+ metadata.gz: 39a277f08d9ed14b54fb7c74cdbae966e4f55519b2cb4ab01bec57ef17afe6614c913136447c2f0001fb0b3d64d41576b58d2ef7879c10241575d953be71921e
7
+ data.tar.gz: a8201ba402798cb2d4b965a0bd9d43840f3cbfe14828ca19a7613bcee26af5497d17eb58bfd593df7c8f8dc6ef346af5c4b8563b7c03f69d83b0348293784813
@@ -23,11 +23,14 @@ var RomoSelect = function(element) {
23
23
  selectedVal = '';
24
24
  }
25
25
  if (selectedVal !== this.elem[0].value) {
26
- this.romoSelectDropdown.doSetNewValue(selectedVal);
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
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.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-15 00:00:00.000000000 Z
12
+ date: 2015-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: assert