jquery-datetimepicker-rails 2.1.3.0 → 2.1.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: 41cb9562d0ec23d81cf1b11b86941d35f5b67069
4
- data.tar.gz: eafd53a3040dffb11182a6a80a6f82c36c2ff534
3
+ metadata.gz: 2a5e5f6ba162ed0f0656206607e29f3dd41da629
4
+ data.tar.gz: b9bd6f2be2f44ae75adcd703fe874d59668f082b
5
5
  SHA512:
6
- metadata.gz: 52bb277733a66b76fd06307f40eaef63ea8ca151aecd44b0b551bfc43a90e60083d58ddd3d551fe967359c29e1b5e87f64f20c5df7404dbf34c58b2debde4095
7
- data.tar.gz: 1d350f41242642c9c2ba94d775c1aafa291344af9b603ed98df1b34c9609fc92db5440e8d1dff6e2873f78d879bccc0c43590bdc6a278a278dc04eda64b6e288
6
+ metadata.gz: 4fd57f043caba087ef517b696eb6dfd457e97dea1f25612208216dbbaafe9017752327449fd1da630c48bb946a9bedee97f69c29470bf84c14cefcab83d96057
7
+ data.tar.gz: 793475b5187377caf29b75051b4511b49fe69be7be8df65353c7375a8273cd0b91e79ec0cfb5559e422a9ffa670b80fc189259bc2b4dd9d4f96451103a2a9852
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.1.3
2
+ * @preserve jQuery DateTimePicker plugin v2.1.4
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2013, Chupurnov Valeriy.
5
5
  */
@@ -323,8 +323,10 @@
323
323
  if( options.datepicker && !options.timepicker )
324
324
  timepicker.removeClass('active');
325
325
 
326
- if( options.value )
326
+ if( options.value ){
327
327
  input&&input.val&&input.val(options.value);
328
+ _xdsoft_datetime.setCurrentTime(options.value);
329
+ }
328
330
 
329
331
  if( isNaN(options.dayOfWeekStart)||parseInt(options.dayOfWeekStart)<0||parseInt(options.dayOfWeekStart)>6 )
330
332
  options.dayOfWeekStart = 0;
@@ -501,7 +503,7 @@
501
503
 
502
504
  $('body').append(datetimepicker);
503
505
 
504
- var XDSoftDateTime = function() {
506
+ var _xdsoft_datetime = new function() {
505
507
  var _this = this;
506
508
  _this.now = function() {
507
509
  return new Date();
@@ -575,8 +577,7 @@
575
577
  _this.str = function() {
576
578
  return _this.currentTime.dateFormat(options.format);
577
579
  };
578
- },
579
- _xdsoft_datetime = new XDSoftDateTime;
580
+ };
580
581
  mounth_picker
581
582
  .find('.xdsoft_today_button')
582
583
  .on('mousedown.xdsoft',function() {
@@ -13,6 +13,7 @@
13
13
  padding-top: 2px;
14
14
  position: absolute;
15
15
  z-index: 9999;
16
+ -moz-box-sizing: border-box;
16
17
  box-sizing: border-box;
17
18
  display:none;
18
19
  }
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.1.3.0'
4
+ VERSION = '2.1.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.1.3.0
4
+ version: 2.1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov