xdan-datetimepicker-rails 2.3.3 → 2.3.4

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: a580c55989409917378a5edee862b4ac4b13a3f7
4
- data.tar.gz: 5532517f4eaecc3f8a9bb39a9dd302b9bb4b7ffa
3
+ metadata.gz: 29ec64530b7bac0045e3e4c0a0fddc7d25358d0e
4
+ data.tar.gz: cbd9033f1892dd72d540c7dce05a6f98f73a2bc8
5
5
  SHA512:
6
- metadata.gz: 1e9c30ee672f2781ba7f9fd95a1a96dab546a6ff77cbdddd9c329c2df6d304cc42f0ff8506da5a288392f301566604e4c59e51bfbeffec65ad1fd27ea9820ab5
7
- data.tar.gz: b59fc35bafa5a131f1130f9a438030334da0087cad1aa91cff892c81577b9e8425790c6863f9fb4dc111e4092096e6a25d0514e56ab1f03adcd7c59c71fdf686
6
+ metadata.gz: e366b50cb8b098ac05a2f0d0f997096662e8bf4b30f12b5ac03d30310e51f29a9f6fde423d50bb886d6db6ca783353e4b92d0b963e05937d3b93c590ced8b9c1
7
+ data.tar.gz: 738f690bb19b198fe6220b10e3ca68f7491a098222ecd850c69df0cc1b271f591b9f50bb7681083410cf5a6cea4c2402312cd5f19fe0de2f90741b1454a1b8d3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.3.3
2
+ * @preserve jQuery DateTimePicker plugin v2.3.4
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2014, Chupurnov Valeriy.
5
5
  */
@@ -156,7 +156,7 @@
156
156
  "January", "Februar", "Marts", "April", "Maj", "Juni", "July", "August", "September", "Oktober", "November", "December"
157
157
  ],
158
158
  dayOfWeek: [
159
- "Søn", "Man", "Tir", "ons", "Tor", "Fre", "lør"
159
+ "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
160
160
  ]
161
161
  },
162
162
  no:{ // Norwegian
@@ -558,10 +558,10 @@
558
558
  _xdsoft_datetime.setCurrentTime(options.value);
559
559
  }
560
560
 
561
- if( isNaN(options.dayOfWeekStart)||parseInt(options.dayOfWeekStart)<0||parseInt(options.dayOfWeekStart)>6 )
561
+ if( isNaN(options.dayOfWeekStart) )
562
562
  options.dayOfWeekStart = 0;
563
563
  else
564
- options.dayOfWeekStart = parseInt(options.dayOfWeekStart);
564
+ options.dayOfWeekStart = parseInt(options.dayOfWeekStart)%7;
565
565
 
566
566
  if( !options.timepickerScrollbar )
567
567
  scrollbar.hide();
@@ -954,7 +954,7 @@
954
954
 
955
955
  // days
956
956
  for(var j = 0; j<7; j++) {
957
- table+='<th>'+options.i18n[options.lang].dayOfWeek[(j+options.dayOfWeekStart)>6?0:j+options.dayOfWeekStart]+'</th>';
957
+ table+='<th>'+options.i18n[options.lang].dayOfWeek[(j+options.dayOfWeekStart)%7]+'</th>';
958
958
  }
959
959
 
960
960
  table+='</tr></thead>';
@@ -1229,6 +1229,7 @@
1229
1229
  if( options.onChangeDateTime&&options.onChangeDateTime.call ) {
1230
1230
  var $input = datetimepicker.data('input');
1231
1231
  options.onChangeDateTime.call(datetimepicker, _xdsoft_datetime.currentTime, $input);
1232
+ delete options.value;
1232
1233
  $input.trigger('change');
1233
1234
  }
1234
1235
  })
@@ -1,3 +1,3 @@
1
1
  module XdanDatetimepickerRails
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdan-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Kovach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-01 00:00:00.000000000 Z
11
+ date: 2014-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails