New version 2.1.2

This commit is contained in:
Valeriy Chupurnov 2014-01-08 20:35:47 +06:00
parent 17e017c688
commit 5ab993129a
2 changed files with 8 additions and 10 deletions

View File

@ -20,7 +20,7 @@
"jquery",
"touch"
],
"version": "2.1.1",
"version": "2.1.2",
"author": {
"name": "Chupurnov Valeriy",
"email": "chupurnov@gmail.com",

View File

@ -1,5 +1,5 @@
/**
* @preserve jQuery DateTimePicker plugin v2.1.1
* @preserve jQuery DateTimePicker plugin v2.1.2
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
* (c) 2013, Chupurnov Valeriy.
*/
@ -447,14 +447,12 @@
if( options.allowBlank && !$.trim($(this).val()).length ) {
$(this).val(null);
datetimepicker.data('xdsoft_datetime').empty();
}
else if( !Date.parseDate( $(this).val(), options.format ) ) {
}else if( !Date.parseDate( $(this).val(), options.format ) ) {
$(this).val((new Date()).dateFormat( options.format ));
datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
}
else
+ {
+ datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
else{
datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
}
datetimepicker.trigger('changedatetime.xdsoft');
});
@ -514,8 +512,8 @@
};
_this.empty = function() {
+ _this.currentTime = null;
+ };
_this.currentTime = null;
};
_this.getCurrentTime = function( dTime) {
return _this.currentTime;