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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA512:
3
- data.tar.gz: 4935a1e5b786db25df2d67db0b81ee2ecc94ee0bbde4a9831f04875cb72f87ac723b6c7e6d23c11c85da2b323bc3e2cd6d380a884481d6db03a478caeac603ec
4
- metadata.gz: 7b0f0228393fce7a60947fed9b840b10facfa4b196bca6944a050315e5eccfc72bb5932877ba9eb55b6ed340134b5019506bc63d2e330c1bfca43f47d1292cbc
3
+ data.tar.gz: 5213978441a99285d038f150c3e63c941d201d3bf8bd9bc7ceaea1708b0f8a719ab353789725576af8e6e4355efa2298eafd540d071c5751cdb39c06835d9cfa
4
+ metadata.gz: 9f82ad94fb73fd66214b8145dfa94e7e1360b8954ba0d4d740b96ce04c0cee07820febd7836565c917e3a0dc9cee87a25e4ae3c9e8dc793bea71251a9de2762b
5
5
  SHA1:
6
- data.tar.gz: 1ad8d86e1f7d5c5c0f333c15b3b59d8e119df190
7
- metadata.gz: 829c96298ed60801e3015eeade8d364171c2a0e2
6
+ data.tar.gz: d8bd79a71d95999e06796780fcec60fa64cf540b
7
+ metadata.gz: 54301720eef9ee106b59ce0474525efe28ca2b0b
@@ -6,6 +6,7 @@
6
6
  }
7
7
 
8
8
  .romo-datepicker-indicator {
9
+ display: inline-block;
9
10
  position: absolute;
10
11
  right: 6px;
11
12
  vertical-align: middle;
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.15.4"
2
+ VERSION = "0.15.5"
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.15.4
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-16 00:00:00 Z
13
+ date: 2016-02-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert