templates/jquery/jquery-ui.js in compass-jquery-plugin-0.3.2.6 vs templates/jquery/jquery-ui.js in compass-jquery-plugin-0.3.2.7.nil
- old
+ new
@@ -1,7 +1,7 @@
/*!
- * jQuery UI @VERSION
+ * jQuery UI 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -16,11 +16,11 @@
if ($.ui.version) {
return;
}
$.extend($.ui, {
- version: "@VERSION",
+ version: "1.8.11",
keyCode: {
ALT: 18,
BACKSPACE: 8,
CAPS_LOCK: 20,
@@ -307,11 +307,11 @@
})(jQuery);
/*!
- * jQuery UI Widget @VERSION
+ * jQuery UI Widget 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -573,11 +573,11 @@
})(jQuery);
/*!
- * jQuery UI Mouse @VERSION
+ * jQuery UI Mouse 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -651,10 +651,15 @@
event.preventDefault();
return true;
}
}
+ // Click event may never have fired (Gecko & Opera)
+ if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {
+ $.removeData(event.target, this.widgetName + '.preventClickEvent');
+ }
+
// these delegates are required to keep context
this._mouseMoveDelegate = function(event) {
return self._mouseMove(event);
};
this._mouseUpDelegate = function(event) {
@@ -733,11 +738,11 @@
})(jQuery);
/*
- * jQuery UI Accordion @VERSION
+ * jQuery UI Accordion 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -848,10 +853,11 @@
self.headers
.not(self.active || "")
.attr({
"aria-expanded": "false",
+ "aria-selected": "false",
tabIndex: -1
})
.next()
.hide();
@@ -860,10 +866,11 @@
self.headers.eq(0).attr("tabIndex", 0);
} else {
self.active
.attr({
"aria-expanded": "true",
+ "aria-selected": "true",
tabIndex: 0
});
}
// only need links in tab order for Safari
@@ -907,10 +914,11 @@
this.headers
.unbind(".accordion")
.removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top")
.removeAttr("role")
.removeAttr("aria-expanded")
+ .removeAttr("aria-selected")
.removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");
this._destroyIcons();
var contents = this.headers.next()
@@ -1211,16 +1219,18 @@
// TODO assert that the blur and focus triggers are really necessary, remove otherwise
toHide.prev()
.attr({
"aria-expanded": "false",
+ "aria-selected": "false",
tabIndex: -1
})
.blur();
toShow.prev()
.attr({
"aria-expanded": "true",
+ "aria-selected": "true",
tabIndex: 0
})
.focus();
},
@@ -1247,11 +1257,11 @@
this._trigger("change", null, this.data);
}
});
$.extend($.ui.accordion, {
- version: "@VERSION",
+ version: "1.8.11",
animations: {
slide: function(options, additions) {
options = $.extend({
easing: "swing",
duration: 300
@@ -1341,11 +1351,11 @@
})(jQuery);
/*
- * jQuery UI Autocomplete @VERSION
+ * jQuery UI Autocomplete 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -1362,10 +1372,11 @@
var requestIndex = 0;
$.widget("ui.autocomplete", {
options: {
appendTo: "body",
+ autoFocus: false,
delay: 300,
minLength: 1,
position: {
my: "left top",
at: "left bottom",
@@ -1707,10 +1718,14 @@
ul.show();
this._resizeMenu();
ul.position($.extend({
of: this.element
}, this.options.position));
+
+ if (this.options.autoFocus) {
+ this.menu.next(new $.Event("mouseover"));
+ }
},
_resizeMenu: function() {
var ul = this.menu.element;
ul.outerWidth(Math.max(
@@ -1952,11 +1967,11 @@
}(jQuery));
/*
- * jQuery UI Button @VERSION
+ * jQuery UI Button 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -2153,12 +2168,20 @@
}
if (this.type === "checkbox" || this.type === "radio") {
// we don't search against the document in case the element
// is disconnected from the DOM
- this.buttonElement = this.element.parents().last()
- .find("label[for=" + this.element.attr("id") + "]");
+ var ancestor = this.element.parents().filter(":last"),
+ labelSelector = "label[for=" + this.element.attr("id") + "]";
+ this.buttonElement = ancestor.find(labelSelector);
+ if (!this.buttonElement.length) {
+ ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();
+ this.buttonElement = ancestor.filter(labelSelector);
+ if (!this.buttonElement.length) {
+ this.buttonElement = ancestor.find(labelSelector);
+ }
+ }
this.element.addClass("ui-helper-hidden-accessible");
var checked = this.element.is(":checked");
if (checked) {
this.buttonElement.addClass("ui-state-active");
@@ -2247,11 +2270,13 @@
icons = this.options.icons,
multipleIcons = icons.primary && icons.secondary,
buttonClasses = [];
if (icons.primary || icons.secondary) {
- buttonClasses.push("ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ));
+ if (this.options.text) {
+ buttonClasses.push("ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ));
+ }
if (icons.primary) {
buttonElement.prepend("<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>");
}
@@ -2259,11 +2284,10 @@
buttonElement.append("<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>");
}
if (!this.options.text) {
buttonClasses.push(multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only");
- buttonElement.removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");
if (!this.hasTitle) {
buttonElement.attr("title", buttonText);
}
}
@@ -2332,11 +2356,11 @@
}(jQuery) );
/*
- * jQuery UI Datepicker @VERSION
+ * jQuery UI Datepicker 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -2345,11 +2369,11 @@
* Depends:
* jquery.ui.core.js
*/
(function($, undefined) {
- $.extend($.ui, { datepicker: { version: "@VERSION" } });
+ $.extend($.ui, { datepicker: { version: "1.8.11" } });
var PROP_NAME = 'datepicker';
var dpuuid = new Date().getTime();
/* Date picker manager.
@@ -2789,11 +2813,18 @@
if (inst) {
if (this._curInst == inst) {
this._hideDatepicker();
}
var date = this._getDateDatepicker(target, true);
+ var minDate = this._getMinMaxDate(inst, 'min');
+ var maxDate = this._getMinMaxDate(inst, 'max');
extendRemove(inst.settings, settings);
+ // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
+ if (minDate !== null && settings['dateFormat'] !== undefined && settings['minDate'] === undefined)
+ inst.settings.minDate = this._formatDate(inst, minDate);
+ if (maxDate !== null && settings['dateFormat'] !== undefined && settings['maxDate'] === undefined)
+ inst.settings.maxDate = this._formatDate(inst, maxDate);
this._attachments($(target), inst);
this._autoSize(inst);
this._setDateDatepicker(target, date);
this._updateDatepicker(inst);
}
@@ -4107,21 +4138,21 @@
};
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
- $.datepicker.version = "@VERSION";
+ $.datepicker.version = "1.8.11";
// Workaround for #4055
// Add another global to avoid noConflict issues with inline event handlers
window['DP_jQuery_' + dpuuid] = $;
})(jQuery);
/*
- * jQuery UI Dialog @VERSION
+ * jQuery UI Dialog 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -4801,11 +4832,11 @@
}
}
});
$.extend($.ui.dialog, {
- version: "@VERSION",
+ version: "1.8.11",
uuid: 0,
maxZ: 0,
getTitleId: function($el) {
@@ -4980,11 +5011,11 @@
}(jQuery));
/*
- * jQuery UI Draggable @VERSION
+ * jQuery UI Draggable 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -5298,11 +5329,13 @@
},
_cacheMargins: function() {
this.margins = {
left: (parseInt(this.element.css("marginLeft"), 10) || 0),
- top: (parseInt(this.element.css("marginTop"), 10) || 0)
+ top: (parseInt(this.element.css("marginTop"), 10) || 0),
+ right: (parseInt(this.element.css("marginRight"), 10) || 0),
+ bottom: (parseInt(this.element.css("marginBottom"), 10) || 0)
};
},
_cacheHelperProportions: function() {
this.helperProportions = {
@@ -5327,14 +5360,14 @@
if (!ce) return;
var co = $(o.containment).offset();
var over = ($(ce).css("overflow") != 'hidden');
this.containment = [
- co.left + (parseInt($(ce).css("borderLeftWidth"), 10) || 0) + (parseInt($(ce).css("paddingLeft"), 10) || 0) - this.margins.left,
- co.top + (parseInt($(ce).css("borderTopWidth"), 10) || 0) + (parseInt($(ce).css("paddingTop"), 10) || 0) - this.margins.top,
- co.left + (over ? Math.max(ce.scrollWidth, ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"), 10) || 0) - (parseInt($(ce).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left,
- co.top + (over ? Math.max(ce.scrollHeight, ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"), 10) || 0) - (parseInt($(ce).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top
+ co.left + (parseInt($(ce).css("borderLeftWidth"), 10) || 0) + (parseInt($(ce).css("paddingLeft"), 10) || 0),
+ co.top + (parseInt($(ce).css("borderTopWidth"), 10) || 0) + (parseInt($(ce).css("paddingTop"), 10) || 0),
+ co.left + (over ? Math.max(ce.scrollWidth, ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"), 10) || 0) - (parseInt($(ce).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right,
+ co.top + (over ? Math.max(ce.scrollHeight, ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"), 10) || 0) - (parseInt($(ce).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom
];
} else if (o.containment.constructor == Array) {
this.containment = o.containment;
}
@@ -5441,11 +5474,11 @@
}
});
$.extend($.ui.draggable, {
- version: "@VERSION"
+ version: "1.8.11"
});
$.ui.plugin.add("draggable", "connectToSortable", {
start: function(event, ui) {
@@ -5457,11 +5490,11 @@
if (sortable && !sortable.options.disabled) {
inst.sortables.push({
instance: sortable,
shouldRevert: sortable.options.revert
});
- sortable._refreshItems(); //Do a one-time refresh at start to refresh the containerCache
+ sortable.refreshPositions(); // Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page).
sortable._trigger("activate", event, uiSortable);
}
});
},
@@ -5789,11 +5822,11 @@
})(jQuery);
/*
- * jQuery UI Droppable @VERSION
+ * jQuery UI Droppable 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -5941,11 +5974,11 @@
}
});
$.extend($.ui.droppable, {
- version: "@VERSION"
+ version: "1.8.11"
});
$.ui.intersect = function(draggable, droppable, toleranceMode) {
if (!droppable.offset) return false;
@@ -6013,15 +6046,15 @@
}
; //Filter out elements in the current dragged item
m[i].visible = m[i].element.css("display") != "none";
if (!m[i].visible) continue; //If the element is not visible, continue
+ if (type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables
+
m[i].offset = m[i].element.offset();
m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
- if (type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables
-
}
},
drop: function(draggable, event) {
@@ -6509,11 +6542,11 @@
})(jQuery);
/*
- * jQuery UI Position @VERSION
+ * jQuery UI Position 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -6765,11 +6798,11 @@
}(jQuery));
/*
- * jQuery UI Progressbar @VERSION
+ * jQuery UI Progressbar 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -6868,18 +6901,18 @@
this.element.attr("aria-valuenow", value);
}
});
$.extend($.ui.progressbar, {
- version: "@VERSION"
+ version: "1.8.11"
});
})(jQuery);
/*
- * jQuery UI Resizable @VERSION
+ * jQuery UI Resizable 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -7398,11 +7431,11 @@
}
});
$.extend($.ui.resizable, {
- version: "@VERSION"
+ version: "1.8.11"
});
/*
* Resizable Extensions
*/
@@ -7705,11 +7738,11 @@
})(jQuery);
/*
- * jQuery UI Selectable @VERSION
+ * jQuery UI Selectable 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -7974,11 +8007,11 @@
}
});
$.extend($.ui.selectable, {
- version: "@VERSION"
+ version: "1.8.11"
});
})(jQuery);
@@ -8029,10 +8062,13 @@
this.ids = [ selectmenuId + '-button', selectmenuId + '-menu' ];
// define safe mouseup for future toggling
this._safemouseup = true;
+ // FIXME temp workaround for IE
+ if ($.browser.msie) o.typeAhead = "";
+
// create menu button wrapper
this.newelement = $('<a class="' + this.widgetBaseClass + ' ui-widget ui-state-default ui-corner-all" id="' + this.ids[0] + '" role="button" href="#" tabindex="0" aria-haspopup="true" aria-owns="' + this.ids[1] + '"></a>')
.insertAfter(this.element);
this.newelement.wrap(o.wrapperElement);
@@ -8205,12 +8241,12 @@
case $.ui.keyCode.ESCAPE:
self.close(event, true);
break;
default:
ret = true;
-
- self._typeAhead(event.keyCode, 'focus'); break;
+ self._typeAhead(event.keyCode, 'focus');
+ break;
}
return ret;
});
// needed when window is resized
@@ -8691,11 +8727,11 @@
})(jQuery);
/*
- * jQuery UI Slider @VERSION
+ * jQuery UI Slider 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -9368,18 +9404,18 @@
}
});
$.extend($.ui.slider, {
- version: "@VERSION"
+ version: "1.8.11"
});
}(jQuery));
/*
- * jQuery UI Sortable @VERSION
+ * jQuery UI Sortable 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -9425,12 +9461,12 @@
this.element.addClass("ui-sortable");
//Get the items
this.refresh();
- //Let's determine if the items are floating
- this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
+ //Let's determine if the items are being displayed horizontally
+ this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false;
//Let's determine the parent's offset
this.offset = this.element.offset();
//Initialize mouse events for interaction
@@ -10504,18 +10540,18 @@
}
});
$.extend($.ui.sortable, {
- version: "@VERSION"
+ version: "1.8.11"
});
})(jQuery);
/*
- * jQuery UI Tabs @VERSION
+ * jQuery UI Tabs 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -11213,11 +11249,11 @@
return this.anchors.length;
}
});
$.extend($.ui.tabs, {
- version: "@VERSION"
+ version: "1.8.11"
});
/*
* Tabs Extensions
*/
@@ -11274,11 +11310,11 @@
})(jQuery);
/*
- * jQuery UI Effects @VERSION
+ * jQuery UI Effects 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -11606,11 +11642,11 @@
/******************************************************************************/
/*********************************** EFFECTS **********************************/
/******************************************************************************/
$.extend($.effects, {
- version: "@VERSION",
+ version: "1.8.11",
// Saves a set of properties in a data storage
save: function(element, set) {
for (var i = 0; i < set.length; i++) {
if (set[i] !== null) element.data("ec.storage." + set[i], element[0].style[set[i]]);
@@ -12069,11 +12105,11 @@
})(jQuery);
/*
- * jQuery UI Effects Blind @VERSION
+ * jQuery UI Effects Blind 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12122,11 +12158,11 @@
})(jQuery);
/*
- * jQuery UI Effects Bounce @VERSION
+ * jQuery UI Effects Bounce 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12210,11 +12246,11 @@
})(jQuery);
/*
- * jQuery UI Effects Clip @VERSION
+ * jQuery UI Effects Clip 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12271,11 +12307,11 @@
})(jQuery);
/*
- * jQuery UI Effects Drop @VERSION
+ * jQuery UI Effects Drop 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12325,11 +12361,11 @@
})(jQuery);
/*
- * jQuery UI Effects Explode @VERSION
+ * jQuery UI Effects Explode 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12406,11 +12442,11 @@
})(jQuery);
/*
- * jQuery UI Effects Fade @VERSION
+ * jQuery UI Effects Fade 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12440,11 +12476,11 @@
})(jQuery);
/*
- * jQuery UI Effects Fold @VERSION
+ * jQuery UI Effects Fold 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12500,11 +12536,11 @@
})(jQuery);
/*
- * jQuery UI Effects Highlight @VERSION
+ * jQuery UI Effects Highlight 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12552,11 +12588,11 @@
})(jQuery);
/*
- * jQuery UI Effects Pulsate @VERSION
+ * jQuery UI Effects Pulsate 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12607,11 +12643,11 @@
})(jQuery);
/*
- * jQuery UI Effects Scale @VERSION
+ * jQuery UI Effects Scale 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12809,11 +12845,11 @@
})(jQuery);
/*
- * jQuery UI Effects Shake @VERSION
+ * jQuery UI Effects Shake 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12873,11 +12909,11 @@
})(jQuery);
/*
- * jQuery UI Effects Slide @VERSION
+ * jQuery UI Effects Slide 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -12927,10 +12963,10 @@
})(jQuery);
/*
- * jQuery UI Effects Transfer @VERSION
+ * jQuery UI Effects Transfer 1.8.11
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*