mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
adding version property to all ui components
This commit is contained in:
parent
b53e2e5c7e
commit
923d1ec3bb
@ -265,6 +265,7 @@ function findActive(headers, selector) {
|
||||
}
|
||||
|
||||
$.extend($.ui.accordion, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
selectedClass: "selected",
|
||||
alwaysOpen: true,
|
||||
|
@ -462,6 +462,7 @@ $.widget("ui.colorpicker", {
|
||||
});
|
||||
|
||||
$.extend($.ui.colorpicker, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
eventName: 'click',
|
||||
color: 'ff0000',
|
||||
|
@ -268,6 +268,7 @@ $.widget.defaults = {
|
||||
/** jQuery UI core **/
|
||||
|
||||
$.ui = {
|
||||
version: "@VERSION",
|
||||
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
||||
plugin: {
|
||||
add: function(module, option, set) {
|
||||
|
@ -1735,5 +1735,6 @@ $.fn.datepicker = function(options){
|
||||
$.datepicker = new Datepicker(); // singleton instance
|
||||
$.datepicker.initialized = false;
|
||||
$.datepicker.uuid = new Date().getTime();
|
||||
$.datepicker.version = "@VERSION";
|
||||
|
||||
})(jQuery);
|
||||
|
@ -394,6 +394,7 @@ $.widget("ui.dialog", {
|
||||
});
|
||||
|
||||
$.extend($.ui.dialog, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
autoOpen: true,
|
||||
autoResize: true,
|
||||
|
@ -350,6 +350,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
||||
}));
|
||||
|
||||
$.extend($.ui.draggable, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
appendTo: "parent",
|
||||
axis: false,
|
||||
|
@ -130,6 +130,7 @@ $.widget("ui.droppable", {
|
||||
});
|
||||
|
||||
$.extend($.ui.droppable, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
disabled: false,
|
||||
tolerance: 'intersect',
|
||||
|
@ -163,6 +163,7 @@ $.widget("ui.magnifier", {
|
||||
});
|
||||
|
||||
$.extend($.ui.magnifier, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
distance: 150,
|
||||
magnification: 2,
|
||||
|
@ -188,6 +188,7 @@ $.widget("ui.progressbar", {
|
||||
plugins: {}
|
||||
});
|
||||
|
||||
$.ui.progressbar.version = "@VERSION";
|
||||
$.ui.progressbar.defaults = {
|
||||
width: 300,
|
||||
duration: 1000,
|
||||
|
@ -516,6 +516,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
||||
}));
|
||||
|
||||
$.extend($.ui.resizable, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
cancel: ":input",
|
||||
distance: 1,
|
||||
|
@ -252,6 +252,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
|
||||
}));
|
||||
|
||||
$.extend($.ui.selectable, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
distance: 1,
|
||||
delay: 0,
|
||||
|
@ -737,6 +737,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
||||
|
||||
$.extend($.ui.sortable, {
|
||||
getter: "serialize toArray",
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
helper: "original",
|
||||
tolerance: "guess",
|
||||
|
@ -392,6 +392,7 @@ $.widget('ui.spinner', {
|
||||
});
|
||||
|
||||
$.extend($.ui.spinner, {
|
||||
version: "@VERSION",
|
||||
defaults: {
|
||||
decimals: 0,
|
||||
stepping: 1,
|
||||
|
@ -514,6 +514,7 @@ $.widget("ui.tabs", {
|
||||
}
|
||||
});
|
||||
|
||||
$.ui.tabs.version = "@VERSION";
|
||||
$.ui.tabs.defaults = {
|
||||
// basic setup
|
||||
unselect: false,
|
||||
|
Loading…
Reference in New Issue
Block a user