jquery-datetimepicker-rails 2.2.3.0 → 2.2.4.0
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: 4a195f175614b4e54e41fe7500951fffb1411969
|
4
|
+
data.tar.gz: 4fe38f15f250b3c539191607df63bb7346385ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d84f1d2a17c6fc3d7604df3ac94cf563e75bfc74cac871c442e634afe2c71fedbbd3ecc99e81e9abb56857c67697c5f7e123ea3fa74e34f6eab579737628cef5
|
7
|
+
data.tar.gz: 0dc9c4803b4c380ce5071ef2fe08aec6155181ebefe2efef7c18eddeae173ced77a003816956d01887fc5ad13fdcbf54f95755ee95b20862a7923b18420d415e
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.2.
|
2
|
+
* @preserve jQuery DateTimePicker plugin v2.2.4
|
3
3
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
4
4
|
* (c) 2014, Chupurnov Valeriy.
|
5
5
|
*/
|
@@ -183,7 +183,7 @@
|
|
183
183
|
scrollTime:true,
|
184
184
|
scrollInput:true,
|
185
185
|
|
186
|
-
lazyInit:
|
186
|
+
lazyInit:false,
|
187
187
|
|
188
188
|
mask:false,
|
189
189
|
validateOnBlur:true,
|
@@ -428,6 +428,15 @@
|
|
428
428
|
// set options
|
429
429
|
datetimepicker.setOptions = function( _options ) {
|
430
430
|
options = $.extend(true,{},options,_options);
|
431
|
+
|
432
|
+
if( _options.allowTimes && $.isArray(_options.allowTimes) && _options.allowTimes.length ){
|
433
|
+
options['allowTimes'] = $.extend(true,[],_options.allowTimes);
|
434
|
+
}
|
435
|
+
|
436
|
+
if( _options.weekends && $.isArray(_options.weekends) && _options.weekends.length ){
|
437
|
+
options['weekends'] = $.extend(true,[],_options.weekends);
|
438
|
+
}
|
439
|
+
|
431
440
|
if( (options.open||options.opened)&&(!options.inline) ) {
|
432
441
|
input.trigger('open.xdsoft');
|
433
442
|
}
|