From c00391b35e3cb98fbd1b43a7acd36853e8094eba Mon Sep 17 00:00:00 2001 From: Valeriy Date: Fri, 3 Oct 2014 17:20:42 +0600 Subject: [PATCH] Delete all comment and clear css --- bower.json | 2 +- datetimepicker.jquery.json | 2 +- jquery.datetimepicker.css | 3 +-- jquery.datetimepicker.js | 21 +++++++-------------- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/bower.json b/bower.json index 8cc3aef..f091ad0 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name":"datetimepicker", - "version":"2.3.5", + "version":"2.3.6", "main": [ "jquery.datetimepicker.js", "jquery.datetimepicker.css" diff --git a/datetimepicker.jquery.json b/datetimepicker.jquery.json index f9232c9..3fabbaf 100644 --- a/datetimepicker.jquery.json +++ b/datetimepicker.jquery.json @@ -1,6 +1,6 @@ { "name": "datetimepicker", - "version": "2.3.5", + "version": "2.3.6", "title": "jQuery Date and Time picker", "description": "jQuery plugin for date, time, or datetime manipulation in form", "keywords": [ diff --git a/jquery.datetimepicker.css b/jquery.datetimepicker.css index c1137af..ca38f00 100644 --- a/jquery.datetimepicker.css +++ b/jquery.datetimepicker.css @@ -113,8 +113,7 @@ float: right; background-position:0px 0px; } -.xdsoft_datetimepicker .xdsoft_next:active,.xdsoft_datetimepicker .xdsoft_prev:active{ -} + .xdsoft_datetimepicker .xdsoft_next, .xdsoft_datetimepicker .xdsoft_prev , .xdsoft_datetimepicker .xdsoft_today_button{ diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 19049d3..395e494 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -1,5 +1,5 @@ /** - * @preserve jQuery DateTimePicker plugin v2.3.5 + * @preserve jQuery DateTimePicker plugin v2.3.6 * @homepage http://xdsoft.net/jqplugins/datetimepicker/ * (c) 2014, Chupurnov Valeriy. */ @@ -288,8 +288,8 @@ timeHeightInTimePicker:25, timepickerScrollbar:true, - todayButton:true, // 2.1.0 - defaultSelect:true, // 2.1.0 + todayButton:true, + defaultSelect:true, scrollMonth:true, scrollTime:true, @@ -495,8 +495,7 @@ scroller = $('
'), monthselect =$('
'), yearselect =$('
'); - - //constructor lego + mounth_picker .find('.xdsoft_month span') .after(monthselect); @@ -558,8 +557,6 @@ } }); - - // set options datetimepicker.setOptions = function( _options ) { options = $.extend(true,{},options,_options); @@ -839,7 +836,6 @@ _this.currentTime.setDate( Math.min( - // Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1) new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(), _this.currentTime.getDate() ) @@ -863,7 +859,6 @@ } _this.currentTime.setDate( Math.min( - // Day 0 is the last day in the previous month, but we want to know the number of days in the current month, so we need to evaluate the subsequent month (month+1) new Date(_this.currentTime.getFullYear(), month+1, 0).getDate(), _this.currentTime.getDate() ) @@ -1003,14 +998,12 @@ while( start.getDay()!=options.dayOfWeekStart ) start.setDate(start.getDate()-1); - //generate calendar table+=''; if(options.weeks) { table+=''; } - // days for(var j = 0; j<7; j++) { table+=''; } @@ -1228,7 +1221,7 @@ timebox .on('click.xdsoft', 'div', function (xdevent) { - xdevent.stopPropagation(); // NAJ: Prevents closing of Pop-ups, Modals and Flyouts + xdevent.stopPropagation(); var $this = $(this), currentTime = _xdsoft_datetime.currentTime; @@ -1303,7 +1296,7 @@ } }) .on( 'click.xdsoft', function( xdevent ) { - xdevent.stopPropagation(); // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap + xdevent.stopPropagation(); }); var current_time_index = 0; @@ -1416,7 +1409,7 @@ return ct?ct:0; } - //debugger + _xdsoft_datetime.setCurrentTime( getCurrentValue() ); input
'+options.i18n[options.lang].dayOfWeek[(j+options.dayOfWeekStart)%7]+'