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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc315c9ea8b1e81bf74685f2ea320d930160d1b
|
4
|
+
data.tar.gz: dd4af6e66e33a3c26340cc6e2a1b2a07ca5c3dd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4bd0659d6667e73c3d69abbd96d880997febbe3b3eefccba09595a3699cccafd30d6fca550ba77246d353f72322d605c7974114bbfe855b93b310081d08d424
|
7
|
+
data.tar.gz: e729d486064a4e5e0c2556d4dfff0df2c1e4d084261835be2192dff06fc8b3f597f8ccda3fe8473db28b6eb61fddf0609f8fc948672f75213363b059502055db
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.0.
|
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<=
|
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
|
-
|
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>';
|
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.
|
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-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|