diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 2fa08dd21..ada6bbbf7 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -28,7 +28,7 @@ $.widget("ui.accordion", { } } } - + this.element.addClass("ui-accordion ui-widget ui-helper-reset"); var groups = this.element.children().addClass("ui-accordion-group"); var headers = options.headers = groups.find("> :first-child").addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all") @@ -36,7 +36,7 @@ $.widget("ui.accordion", { .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); }); // wrap content elements in div against animation issues headers.next().wrap("
").addClass("ui-accordion-content").parent().addClass("ui-accordion-content-wrap ui-helper-reset ui-widget-content ui-corner-bottom"); - + var active = options.active = findActive(headers, options.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"); active.parent().addClass("selected"); $("").addClass("ui-icon " + this.options.icons.header).prependTo(headers); @@ -129,7 +129,7 @@ $.widget("ui.accordion", { return true; }, - + resize: function() { var options = this.options, maxHeight; diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 65fa391d2..a25e72eac 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -304,7 +304,7 @@ $.extend(Datepicker.prototype, { css({opacity: '1.0', cursor: ''}); } else if (nodeName == 'div' || nodeName == 'span') { - var inline = $target.children('.' + this._inlineClass); + var inline = $target.children('.' + this._inlineClass); inline.children().removeClass('ui-state-disabled'); } this._disabledInputs = $.map(this._disabledInputs, @@ -340,9 +340,9 @@ $.extend(Datepicker.prototype, { @return boolean - true if disabled, false if enabled */ _isDisabledDatepicker: function(target) { if (!target) { - return false; + return false; } - for (var i = 0; i < this._disabledInputs.length; i++) { + for (var i = 0; i < this._disabledInputs.length; i++) { if (this._disabledInputs[i] == target) return true; } @@ -433,7 +433,7 @@ $.extend(Datepicker.prototype, { _doKeyDown: function(event) { var inst = $.datepicker._getInst(event.target); var handled = true; - var isRTL = inst.dpDiv.is('.ui-datepicker-rtl'); + var isRTL = inst.dpDiv.is('.ui-datepicker-rtl'); inst._keyEvent = true; if ($.datepicker._datepickerShowing) switch (event.keyCode) { @@ -760,7 +760,7 @@ $.extend(Datepicker.prototype, { _selectDay: function(id, month, year, td) { var target = $(id); if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) { - return; + return; } var inst = this._getInst(target[0]); inst.selectedDay = inst.currentDay = $('a', td).html(); @@ -1149,7 +1149,7 @@ $.extend(Datepicker.prototype, { } catch (event) { this.log(event); date = defaultDate; - } + } inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); @@ -1240,7 +1240,7 @@ $.extend(Datepicker.prototype, { this._notifyChange(inst); this._adjustInstDate(inst); if (inst.input) { - inst.input.val(clear ? '' : this._formatDate(inst)); + inst.input.val(clear ? '' : this._formatDate(inst)); } }, @@ -1258,7 +1258,7 @@ $.extend(Datepicker.prototype, { today = this._daylightSavingAdjust( new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time var isRTL = this._get(inst, 'isRTL'); - var showButtonPanel = this._get(inst, 'showButtonPanel'); + var showButtonPanel = this._get(inst, 'showButtonPanel'); var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext'); var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat'); var numMonths = this._getNumberOfMonths(inst); @@ -1292,7 +1292,7 @@ $.extend(Datepicker.prototype, { prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), this._getFormatConfig(inst))); - var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? + var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? '' : (hideIfNoPrevNext ? '' : '')); @@ -1309,7 +1309,7 @@ $.extend(Datepicker.prototype, { currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); var controls = ''; - var buttonPanel = (showButtonPanel) ? '