mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
New version
Update method open
This commit is contained in:
parent
161800fe89
commit
fb10237c98
@ -11,7 +11,7 @@
|
||||
"timepicker",
|
||||
"datetimepicker"
|
||||
],
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.4",
|
||||
"author": {
|
||||
"name": "Chupurnov Valeriy",
|
||||
"url": "http://xdsoft.net/contacts.html"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @preserve jQuery DateTimePicker plugin v1.0.3
|
||||
* @preserve jQuery DateTimePicker plugin v1.0.4
|
||||
* (c) 2013, Chupurnov Valeriy.
|
||||
*/
|
||||
(function( $ ){
|
||||
@ -356,6 +356,12 @@
|
||||
left:offset.left,
|
||||
top:offset.top+datetimepicker.data('input')[0].offsetHeight,
|
||||
}).show();
|
||||
if( options.closeOnWithoutClick ){
|
||||
$(window).on('mousedown keydown',function(){
|
||||
datetimepicker.close();
|
||||
$(this).off('mousedown',arguments.callee);
|
||||
});
|
||||
}
|
||||
datetimepicker.trigger('open.doksoft');
|
||||
}
|
||||
};
|
||||
@ -382,12 +388,6 @@
|
||||
return;
|
||||
_xdsoft_datetime.setCurrentTime((input&&input.val&&input.val())?input.val():new Date);
|
||||
datetimepicker.open();
|
||||
if( options.closeOnWithoutClick ){
|
||||
$(window).on('mousedown keydown',function(){
|
||||
datetimepicker.close();
|
||||
$(this).off('mousedown',arguments.callee);
|
||||
});
|
||||
}
|
||||
},100);
|
||||
//event.stopPropagation();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user