xdan-datetimepicker-rails 2.3.0 → 2.3.1

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: ee987cb2ee526ab836d21cb9af3eebb40f58c237
4
- data.tar.gz: 63f9af2bbecf788288e87789bdcda6b004fad0f0
3
+ metadata.gz: 6832de300b368615a049e6e1e57462ac42ed11f5
4
+ data.tar.gz: ff3f16180853551486fddb63359039a96974ea4a
5
5
  SHA512:
6
- metadata.gz: 87ca165e3d822c9d9b1c2925047e12d53d599b0ba4eed492e3b1f5b2ad01e1c2bb4c09487e883b30901dae6ab49fdc4264f2c11facc1f593893a073b08eaa96f
7
- data.tar.gz: 6c1d17fdd8fa1ae8098b7dc64a4120226066f21201f9d7cfb4f447d478dc17b6ebece7229df392f605a7bf2f8d47d6d9e7304ced2650d7a20afb2efa60bc4f64
6
+ metadata.gz: 9a9a7f340229a1f1b54375a97ad6f3c2dc08cb4a0d8245dbee9f58fd558377b61d7c8faf647d788db68345e2826f70f8de086c67689d28b2737c693c618dae1c
7
+ data.tar.gz: 129cf6d773a19ad54e8c9c502abf8e6867de5c4e1c8b23068f3bb4dcbe05cab02b0cdb761923a1b4976c12d402c90f9c3b2e1bc7951a99267c4dd3756713987f
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.3.0
2
+ * @preserve jQuery DateTimePicker plugin v2.3.1
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2014, Chupurnov Valeriy.
5
5
  */
@@ -1088,6 +1088,12 @@
1088
1088
  timerclick++;
1089
1089
  var $this = $(this),
1090
1090
  currentTime = _xdsoft_datetime.currentTime;
1091
+
1092
+ if( currentTime===undefined||currentTime===null ){
1093
+ _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
1094
+ currentTime = _xdsoft_datetime.currentTime;
1095
+ }
1096
+
1091
1097
  if( $this.hasClass('xdsoft_disabled') )
1092
1098
  return false;
1093
1099
 
@@ -1120,6 +1126,12 @@
1120
1126
  xdevent.stopPropagation(); // NAJ: Prevents closing of Pop-ups, Modals and Flyouts
1121
1127
  var $this = $(this),
1122
1128
  currentTime = _xdsoft_datetime.currentTime;
1129
+
1130
+ if( currentTime===undefined||currentTime===null ){
1131
+ _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
1132
+ currentTime = _xdsoft_datetime.currentTime;
1133
+ }
1134
+
1123
1135
  if( $this.hasClass('xdsoft_disabled') )
1124
1136
  return false;
1125
1137
  currentTime.setHours($this.data('hour'));
@@ -1,3 +1,3 @@
1
1
  module XdanDatetimepickerRails
2
- VERSION = '2.3.0'
2
+ VERSION = '2.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdan-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Kovach