jquery-datetimepicker-rails 2.2.3.0 → 2.2.4.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: 81b1b446f08fcd172ee11acf4dc20ca3c7593084
4
- data.tar.gz: a52d33c26c4f904482921c4e4c6283a90f3484c6
3
+ metadata.gz: 4a195f175614b4e54e41fe7500951fffb1411969
4
+ data.tar.gz: 4fe38f15f250b3c539191607df63bb7346385ffd
5
5
  SHA512:
6
- metadata.gz: be6486efe1004e0f433ecfc5b5c211d1a1a1f63e4437a444c8e2a9f3f86866c86901cf1edfc4dc65a0bc1859ac5ca9a95ca0787089b4c017cdc423d533957500
7
- data.tar.gz: 2cb4e6e163b45c6b5e7f189c05a2677768438acf44f3dec0546fe5bb093ce3261e75bbb572090e67383ba3bc51c0b17507146e24c6dfb1d404489eae7d1bc0f9
6
+ metadata.gz: d84f1d2a17c6fc3d7604df3ac94cf563e75bfc74cac871c442e634afe2c71fedbbd3ecc99e81e9abb56857c67697c5f7e123ea3fa74e34f6eab579737628cef5
7
+ data.tar.gz: 0dc9c4803b4c380ce5071ef2fe08aec6155181ebefe2efef7c18eddeae173ced77a003816956d01887fc5ad13fdcbf54f95755ee95b20862a7923b18420d415e
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.2.3
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:true,
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
  }
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.2.3.0'
4
+ VERSION = '2.2.4.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3.0
4
+ version: 2.2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov