fix bug in ie8

This commit is contained in:
Valeriy 2014-07-08 19:30:24 +06:00
parent 3110364005
commit 44039d036f
3 changed files with 15 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name":"datetimepicker",
"version":"2.3.0",
"version":"2.3.1",
"main": [
"jquery.datetimepicker.js",
"jquery.datetimepicker.css"

View File

@ -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": [

View File

@ -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'));