jquery-datetimepicker-rails 2.0.8.0 → 2.0.9.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: 752b9a9af29d44523d1ee1273e26006ceaa3229f
4
- data.tar.gz: c5dff8147817478608e4a07431a716f4367f4d5c
3
+ metadata.gz: b6906eae163239f9fd7e1b8c5d9af7b879e5db37
4
+ data.tar.gz: dfc1e87ef79d0a31771d50324c4be3a101f98fd8
5
5
  SHA512:
6
- metadata.gz: 2593f3d80cb8f1dee2c1b84bbf47e8280d1711fd19a18c9eab9e86050ef5b727d644906d06949df865d4da1cd0eb6c73c37e5b4a997a62c93fd0f86e6634494f
7
- data.tar.gz: eab7609bc3feef7b1190e5996df18e55d00888bff02f7f9de065ded44b9a5000c72386ae2ade2bedf1db9b098d7f82d112c6451bcee59dc1d8dd9be8ac74219d
6
+ metadata.gz: ab58649b83c1e876fd7b6d31c89393557f41d109c614021d78d400e7ea52a70bbdef87eee25ff93418e8e438ab96265778100bd26bdca464c8e510ff94d1e3fd
7
+ data.tar.gz: 34c295abbe4f2c73f2e58a9ced89de5b0e33d072ff8f41eee18d33ec3a6c3574de832f35fed27dafd5a44e72a672dc78227c08c8a875101551f5233522ca5ede
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.0.8
2
+ * @preserve jQuery DateTimePicker plugin v2.0.9
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2013, Chupurnov Valeriy.
5
5
  */
@@ -730,19 +730,22 @@
730
730
  timeboxparent.trigger('scroll_element.xdsoft_scroller',[parseInt(top)/(height-pheight)]);
731
731
  }
732
732
  });
733
+ var timerclick = 0;
733
734
  calendar
734
- .on('mousedown.xdsoft','td',function() {
735
+ .on('click.xdsoft','td',function() {
736
+ timerclick++;
735
737
  var $this = $(this),
736
738
  currentTime = _xdsoft_datetime.currentTime;
737
739
  if( $this.hasClass('xdsoft_disabled') )
738
740
  return false;
741
+
739
742
  currentTime.setFullYear( $this.data('year') );
740
743
  currentTime.setMonth( $this.data('month') );
741
744
  currentTime.setDate( $this.data('date') );
742
745
  datetimepicker.trigger('select.xdsoft',[currentTime]);
743
746
 
744
747
  input.val( _xdsoft_datetime.str() );
745
- if( (options.closeOnDateSelect===true||( options.closeOnDateSelect===0&&!options.timepicker ))&&!options.inline ) {
748
+ if( (timerclick>1||(options.closeOnDateSelect===true||( options.closeOnDateSelect===0&&!options.timepicker )))&&!options.inline ) {
746
749
  datetimepicker.trigger('close.xdsoft');
747
750
  }
748
751
 
@@ -752,10 +755,13 @@
752
755
 
753
756
  datetimepicker.trigger('xchange.xdsoft');
754
757
  datetimepicker.trigger('changedatetime.xdsoft');
755
- });
758
+ setTimeout(function(){
759
+ timerclick = 0;
760
+ },200);
761
+ });
756
762
 
757
763
  timebox
758
- .on('mousedown.xdsoft','div',function() {
764
+ .on('click.xdsoft','div',function() {
759
765
  var $this = $(this),
760
766
  currentTime = _xdsoft_datetime.currentTime;
761
767
  if( $this.hasClass('xdsoft_disabled') )
@@ -59,6 +59,7 @@
59
59
  }
60
60
  .xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
61
61
  margin-top:8px;
62
+ margin-bottom:3px
62
63
  }
63
64
  .xdsoft_datetimepicker .xdsoft_mounthpicker{
64
65
  position: relative;
@@ -214,6 +215,9 @@
214
215
  cursor:pointer;
215
216
  height: 25px;
216
217
  }
218
+ .xdsoft_datetimepicker .xdsoft_calendar th{
219
+ background: #F1F1F1;
220
+ }
217
221
  .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
218
222
  color:#33AAFF;
219
223
  }
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.0.8.0'
4
+ VERSION = '2.0.9.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8.0
4
+ version: 2.0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2013-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler