mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
new version 2.0.7
Fix bug with additional keyboard in mask mode
This commit is contained in:
parent
98f12c07dd
commit
02aef76797
@ -20,7 +20,7 @@
|
|||||||
"jquery",
|
"jquery",
|
||||||
"touch"
|
"touch"
|
||||||
],
|
],
|
||||||
"version": "2.0.6",
|
"version": "2.0.7",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Chupurnov Valeriy",
|
"name": "Chupurnov Valeriy",
|
||||||
"email": "chupurnov@gmail.com",
|
"email": "chupurnov@gmail.com",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* @preserve jQuery DateTimePicker plugin v2.0.6
|
* @preserve jQuery DateTimePicker plugin v2.0.7
|
||||||
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
||||||
* (c) 2013, Chupurnov Valeriy.
|
* (c) 2013, Chupurnov Valeriy.
|
||||||
*/
|
*/
|
||||||
@ -373,9 +373,9 @@
|
|||||||
var val = this.value,
|
var val = this.value,
|
||||||
key = event.which;
|
key = event.which;
|
||||||
switch(true){
|
switch(true){
|
||||||
case (( key>=KEY0&&key<=KEY9 )||( key>=_KEY0&&key<=_KEY ))||(key==BACKSPACE||key==DEL):
|
case (( key>=KEY0&&key<=KEY9 )||( key>=_KEY0&&key<=_KEY9 ))||(key==BACKSPACE||key==DEL):
|
||||||
var pos = getCaretPos(this),
|
var pos = getCaretPos(this),
|
||||||
digit = ( key!=BACKSPACE&&key!=DEL )?String.fromCharCode(key):'_';
|
digit = ( key!=BACKSPACE&&key!=DEL )?String.fromCharCode((_KEY0 <= key && key <= _KEY9)? key-KEY0 : key):'_';
|
||||||
if( (key==BACKSPACE||key==DEL)&&pos ){
|
if( (key==BACKSPACE||key==DEL)&&pos ){
|
||||||
pos--;
|
pos--;
|
||||||
digit='_';
|
digit='_';
|
||||||
|
Loading…
Reference in New Issue
Block a user