jquery-datetimepicker-rails 2.0.6.0 → 2.0.7.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: f68a39a251d738cc4e9bf0767a210513ea1ea3d4
4
- data.tar.gz: 5bdd35471f3b7f775e6b49b02eac39e0644f9d56
3
+ metadata.gz: bfc315c9ea8b1e81bf74685f2ea320d930160d1b
4
+ data.tar.gz: dd4af6e66e33a3c26340cc6e2a1b2a07ca5c3dd3
5
5
  SHA512:
6
- metadata.gz: 80e42a043e90b6bd6c1460542208caa093d69e08f28f964b92305f90923696943a54b4c8261448dd9a8c8105083ad0e39f6fcf86824f5914d4a6ac7e405c1fd1
7
- data.tar.gz: 9e02166fffa4d10040ddae02524c2277f10d70e80d5bee2387ded0a5010c72eb2a7cab4ece932a258ffbd959ef4b0c99747f4fa3220a6ae4f92ba36d4118e450
6
+ metadata.gz: a4bd0659d6667e73c3d69abbd96d880997febbe3b3eefccba09595a3699cccafd30d6fca550ba77246d353f72322d605c7974114bbfe855b93b310081d08d424
7
+ data.tar.gz: e729d486064a4e5e0c2556d4dfff0df2c1e4d084261835be2192dff06fc8b3f597f8ccda3fe8473db28b6eb61fddf0609f8fc948672f75213363b059502055db
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.0.6
2
+ * @preserve jQuery DateTimePicker plugin v2.0.7
3
3
  * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
4
  * (c) 2013, Chupurnov Valeriy.
5
5
  */
@@ -373,9 +373,9 @@
373
373
  var val = this.value,
374
374
  key = event.which;
375
375
  switch(true){
376
- case (( key>=KEY0&&key<=KEY9 )||( key>=_KEY0&&key<=_KEY ))||(key==BACKSPACE||key==DEL):
376
+ case (( key>=KEY0&&key<=KEY9 )||( key>=_KEY0&&key<=_KEY9 ))||(key==BACKSPACE||key==DEL):
377
377
  var pos = getCaretPos(this),
378
- digit = ( key!=BACKSPACE&&key!=DEL )?String.fromCharCode(key):'_';
378
+ digit = ( key!=BACKSPACE&&key!=DEL )?String.fromCharCode((_KEY0 <= key && key <= _KEY9)? key-KEY0 : key):'_';
379
379
  if( (key==BACKSPACE||key==DEL)&&pos ){
380
380
  pos--;
381
381
  digit='_';
@@ -403,7 +403,7 @@
403
403
  }
404
404
  break;
405
405
  case ( !!~([AKEY,CKEY,VKEY,ZKEY,YKEY].indexOf(key))&&ctrlDown ):
406
- case !!~([ESC,ARROWUP,ARROWDOWN,ARROWLEFT,ARROWRIGHT,F5,CTRLKEY].indexOf(key)):
406
+ case !!~([ESC,ARROWUP,ARROWDOWN,ARROWLEFT,ARROWRIGHT,F5,CTRLKEY,TAB,ENTER].indexOf(key)):
407
407
  return true;
408
408
  }
409
409
  event.preventDefault();
@@ -653,7 +653,7 @@
653
653
  (
654
654
  (parseInt(_xdsoft_datetime.currentTime.getHours())==parseInt(h)
655
655
  &&
656
- parseInt(_xdsoft_datetime.currentTime.getMinutes()/options.step)*options.step==parseInt(m)
656
+ Math.round(_xdsoft_datetime.currentTime.getMinutes()/options.step)*options.step==parseInt(m)
657
657
  )?' xdsoft_current ':'')+
658
658
  ((parseInt(today.getHours())==parseInt(h)&&parseInt(today.getMinutes())==parseInt(m))?' xdsoft_today ':'')+
659
659
  '" data-hour="'+h+'" data-minute="'+m+'">'+now.dateFormat(options.formatTime)+'</div>';
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.0.6.0'
4
+ VERSION = '2.0.7.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6.0
4
+ version: 2.0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-12 00:00:00.000000000 Z
11
+ date: 2013-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler