xdan-datetimepicker-rails 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6832de300b368615a049e6e1e57462ac42ed11f5
|
|
4
|
+
data.tar.gz: ff3f16180853551486fddb63359039a96974ea4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a9a7f340229a1f1b54375a97ad6f3c2dc08cb4a0d8245dbee9f58fd558377b61d7c8faf647d788db68345e2826f70f8de086c67689d28b2737c693c618dae1c
|
|
7
|
+
data.tar.gz: 129cf6d773a19ad54e8c9c502abf8e6867de5c4e1c8b23068f3bb4dcbe05cab02b0cdb761923a1b4976c12d402c90f9c3b2e1bc7951a99267c4dd3756713987f
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.3.
|
|
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'));
|