Browse files

some issue in displaying month

  • Loading branch information...
1 parent 77a206b commit 8bad4c7a9f624c659f0b1e0571a1888fcd5bb59c @BeenaShetty committed Jun 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.ui.datetimepicker.js
View
6 jquery.ui.datetimepicker.js
@@ -295,11 +295,11 @@ $.extend($.ui, { datetimepicker: { version: "1.0.0"} });
}).bind("getData.datepicker", function(event, key) {
return this._get(inst, key);
});
- this._autoSize(inst);
$.data(target, PROP_NAME, inst);
},
/* Make attachments based on settings. */
+ this._autoSize(inst);
_attachments: function(input, inst) {
var appendText = this._get(inst, 'appendText');
var isRTL = this._get(inst, 'isRTL');
@@ -1708,12 +1708,12 @@ $.extend($.ui, { datetimepicker: { version: "1.0.0"} });
inst.currentMinute = inst.selectedMinute;
}
var timepicker = this._get(inst, 'timepicker')
+ inst.currentMonth += 1;
if(timepicker){
var Hour = inst.currentHour;
if (Hour > 12){
Hour = Hour - 12;
}
- inst.currentMonth += 1;
var MinuteString = inst.currentMinute;
if (MinuteString.length == 1){
MinuteString = "0" + MinuteString;
@@ -1921,4 +1921,4 @@ Date.prototype.getDayName = function() {
//Get Short Day Name
Date.prototype.getShortDayName = function() {
return Date.locale.dayNames[this.getDay()].substr(0,3);
-}
+}

0 comments on commit 8bad4c7

Please sign in to comment.