new version 2.0.7

Fix bug with additional keyboard in mask mode
This commit is contained in:
Valeriy 2013-12-13 12:23:46 +06:00
parent 98f12c07dd
commit 02aef76797
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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='_';