romo 0.15.4 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/css/romo/datepicker.scss +1 -0
- data/assets/js/romo/datepicker.js +27 -0
- data/lib/romo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
data.tar.gz:
|
4
|
-
metadata.gz:
|
3
|
+
data.tar.gz: 5213978441a99285d038f150c3e63c941d201d3bf8bd9bc7ceaea1708b0f8a719ab353789725576af8e6e4355efa2298eafd540d071c5751cdb39c06835d9cfa
|
4
|
+
metadata.gz: 9f82ad94fb73fd66214b8145dfa94e7e1360b8954ba0d4d740b96ce04c0cee07820febd7836565c917e3a0dc9cee87a25e4ae3c9e8dc793bea71251a9de2762b
|
5
5
|
SHA1:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
6
|
+
data.tar.gz: d8bd79a71d95999e06796780fcec60fa64cf540b
|
7
|
+
metadata.gz: 54301720eef9ee106b59ce0474525efe28ca2b0b
|
@@ -63,6 +63,9 @@ RomoDatepicker.prototype.doBindElem = function() {
|
|
63
63
|
if (this.elem.prop('disabled') === true) {
|
64
64
|
this.indicatorElem.addClass('disabled');
|
65
65
|
}
|
66
|
+
if (this.elem.css('display') === 'none') {
|
67
|
+
this._hide(this.indicatorElem);
|
68
|
+
}
|
66
69
|
this.indicatorElem.on('click', $.proxy(this.onIndicatorClick, this));
|
67
70
|
this.elem.css({'padding-right': '22px'});
|
68
71
|
this.elem.after(this.indicatorElem);
|
@@ -81,6 +84,12 @@ RomoDatepicker.prototype.doBindElem = function() {
|
|
81
84
|
this.elem.on('datepicker:triggerDisable', $.proxy(function(e) {
|
82
85
|
this.doDisable();
|
83
86
|
}, this));
|
87
|
+
this.elem.on('datepicker:triggerShow', $.proxy(function(e) {
|
88
|
+
this.doShow();
|
89
|
+
}, this));
|
90
|
+
this.elem.on('datepicker:triggerHide', $.proxy(function(e) {
|
91
|
+
this.doHide();
|
92
|
+
}, this));
|
84
93
|
this.elem.on('datepicker:triggerSetFormat', $.proxy(function(e) {
|
85
94
|
this.doSetFormat();
|
86
95
|
}, this));
|
@@ -113,6 +122,16 @@ RomoDatepicker.prototype.doDisable = function() {
|
|
113
122
|
this.indicatorElem.addClass('disabled');
|
114
123
|
}
|
115
124
|
|
125
|
+
RomoDatepicker.prototype.doShow = function() {
|
126
|
+
this._show(this.elem);
|
127
|
+
this._show(this.indicatorElem);
|
128
|
+
}
|
129
|
+
|
130
|
+
RomoDatepicker.prototype.doHide = function() {
|
131
|
+
this._hide(this.elem);
|
132
|
+
this._hide(this.indicatorElem);
|
133
|
+
}
|
134
|
+
|
116
135
|
RomoDatepicker.prototype.doBindDropdown = function() {
|
117
136
|
this.elem.attr('data-romo-dropdown-disable-toggle', 'true');
|
118
137
|
if (this.elem.data('romo-dropdown-width') === undefined) {
|
@@ -306,6 +325,14 @@ RomoDatepicker.prototype.onPopupMouseUp = function(e) {
|
|
306
325
|
|
307
326
|
// private
|
308
327
|
|
328
|
+
RomoDatepicker.prototype._show = function(elem) {
|
329
|
+
elem.css('display', '');
|
330
|
+
}
|
331
|
+
|
332
|
+
RomoDatepicker.prototype._hide = function(elem) {
|
333
|
+
elem.css('display', 'none');
|
334
|
+
}
|
335
|
+
|
309
336
|
RomoDatepicker.prototype._triggerSetDateChangeEvent = function() {
|
310
337
|
if (this.elem.val() !== this.prevValue) {
|
311
338
|
this.elem.trigger('change');
|
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.15.
|
4
|
+
version: 0.15.5
|
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: 2016-02-
|
13
|
+
date: 2016-02-19 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|