diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-12-31 08:22:11 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-12-31 08:22:11 +0000 |
commit | dbcf65fce9a71b5fc6ac2f0db1d87c0f5574843b (patch) | |
tree | 8e3bd3fc55aa63cc1c17d93cc7ad41e69fca6240 /ui | |
parent | b00026f72be720a44200d127f71f7b11c5ce939b (diff) | |
download | jquery-ui-dbcf65fce9a71b5fc6ac2f0db1d87c0f5574843b.tar.gz jquery-ui-dbcf65fce9a71b5fc6ac2f0db1d87c0f5574843b.zip |
Remove trailing spaces
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.accordion.js | 6 | ||||
-rw-r--r-- | ui/ui.datepicker.js | 32 | ||||
-rw-r--r-- | ui/ui.draggable.js | 8 | ||||
-rw-r--r-- | ui/ui.progressbar.js | 2 | ||||
-rw-r--r-- | ui/ui.slider.js | 4 |
5 files changed, 26 insertions, 26 deletions
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("<div></div>").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"); $("<span/>").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) ? '<a class="ui-datepicker-prev ui-corner-all" onclick="jQuery.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' + ' title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>' : (hideIfNoPrevNext ? '' : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ prevText +'"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>')); @@ -1309,7 +1309,7 @@ $.extend(Datepicker.prototype, { currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); var controls = '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="jQuery.datepicker._hideDatepicker();">' + this._get(inst, 'closeText') + '</button>'; - var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') + + var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') + (this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="jQuery.datepicker._gotoToday(\'#' + inst.id + '\');"' + '>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : ''; var firstDay = parseInt(this._get(inst, 'firstDay')); @@ -1330,7 +1330,7 @@ $.extend(Datepicker.prototype, { for (var col = 0; col < numMonths[1]; col++) { var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); var cornerClass = ' ui-corner-all'; - var calender = ''; + var calender = ''; if (isMultiMonth) { calender += '<div class="ui-datepicker-group ui-datepicker-group-'; switch (col) { @@ -1340,8 +1340,8 @@ $.extend(Datepicker.prototype, { } calender += '">'; } - calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' + - (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') + + calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' + + (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') + (/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, row > 0 || col > 0, monthNames) + // draw month headers @@ -1385,10 +1385,10 @@ $.extend(Datepicker.prototype, { (unselectable ? '' : ' onclick="jQuery.datepicker._selectDay(\'#' + inst.id + '\',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions (otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') : // display for other months - (unselectable ? printDate.getDate() : '<a class="ui-state-default' + - (printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') + + (unselectable ? printDate.getDate() : '<a class="ui-state-default' + + (printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') + (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range - ' ui-state-active' : '') + // highlight selected day + ' ui-state-active' : '') + // highlight selected day '" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display for this month printDate.setDate(printDate.getDate() + 1); printDate = this._daylightSavingAdjust(printDate); diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index a18546001..8f9d8682e 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -428,7 +428,7 @@ $.ui.plugin.add("draggable", "connectToSortable", { this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]); this.instance.options.helper = this.instance.options._helper; - + if(inst.options.helper == 'original') { this.instance.currentItem.css({ top: 'auto', left: 'auto' }); } @@ -599,9 +599,9 @@ $.ui.plugin.add("draggable", "scroll", { // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag if(scrolled !== false && i.cssPosition == 'absolute' && i.scrollParent[0] != document && $.ui.contains(i.scrollParent[0], i.offsetParent[0])) { i.offset.parent = i._getParentOffset(); - + } - + // This is another very weird special case that only happens for relative elements: // 1. If the css position is relative // 2. and the scroll parent is the document or similar to the offset parent @@ -609,7 +609,7 @@ $.ui.plugin.add("draggable", "scroll", { if(scrolled !== false && i.cssPosition == 'relative' && !(i.scrollParent[0] != document && i.scrollParent[0] != i.offsetParent[0])) { i.offset.relative = i._getRelativeOffset(); } - + } }); diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index f47320f47..0b81f2a85 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -101,7 +101,7 @@ $.widget("ui.progressbar", { this.valueDiv.width(value + '%'); this.element.attr("aria-valuenow", value); } - + }); $.extend($.ui.progressbar, { diff --git a/ui/ui.slider.js b/ui/ui.slider.js index 213607bac..5e3e28d26 100644 --- a/ui/ui.slider.js +++ b/ui/ui.slider.js @@ -344,7 +344,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { var orientation = this.options.orientation; if (orientation != 'horizontal' && orientation != 'vertical') orientation = 'horizontal'; - + return orientation; }, @@ -367,7 +367,7 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, { var val = this.options.values[index]; if (val < this._valueMin()) val = this._valueMin(); if (val > this._valueMax()) val = this._valueMax(); - + return val; } else { return this.options.values; |