mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
fix bug in ie8
This commit is contained in:
parent
3110364005
commit
44039d036f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name":"datetimepicker",
|
||||
"version":"2.3.0",
|
||||
"version":"2.3.1",
|
||||
"main": [
|
||||
"jquery.datetimepicker.js",
|
||||
"jquery.datetimepicker.css"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datetimepicker",
|
||||
"version": "2.3.0",
|
||||
"version": "2.3.1",
|
||||
"title": "jQuery Date and Time picker",
|
||||
"description": "jQuery plugin for date, time, or datetime manipulation in form",
|
||||
"keywords": [
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @preserve jQuery DateTimePicker plugin v2.3.0
|
||||
* @preserve jQuery DateTimePicker plugin v2.3.1
|
||||
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
||||
* (c) 2014, Chupurnov Valeriy.
|
||||
*/
|
||||
@ -1088,6 +1088,12 @@
|
||||
timerclick++;
|
||||
var $this = $(this),
|
||||
currentTime = _xdsoft_datetime.currentTime;
|
||||
|
||||
if( currentTime===undefined||currentTime===null ){
|
||||
_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
|
||||
currentTime = _xdsoft_datetime.currentTime;
|
||||
}
|
||||
|
||||
if( $this.hasClass('xdsoft_disabled') )
|
||||
return false;
|
||||
|
||||
@ -1120,6 +1126,12 @@
|
||||
xdevent.stopPropagation(); // NAJ: Prevents closing of Pop-ups, Modals and Flyouts
|
||||
var $this = $(this),
|
||||
currentTime = _xdsoft_datetime.currentTime;
|
||||
|
||||
if( currentTime===undefined||currentTime===null ){
|
||||
_xdsoft_datetime.currentTime = _xdsoft_datetime.now();
|
||||
currentTime = _xdsoft_datetime.currentTime;
|
||||
}
|
||||
|
||||
if( $this.hasClass('xdsoft_disabled') )
|
||||
return false;
|
||||
currentTime.setHours($this.data('hour'));
|
||||
|
Loading…
Reference in New Issue
Block a user