Skip to content
Permalink
Browse files

Tabs: Added defaults for callback options. Fixed 4619 (Tabs doesn't d…

…efine default for select option).
  • Loading branch information
scottgonzalez committed Jun 20, 2009
1 parent 3057d49 commit 82df8dbf533f2b44602e33c4201d7fe8475be919
Showing with 14 additions and 0 deletions.
  1. +7 −0 tests/unit/tabs/tabs_defaults.js
  2. +7 −0 ui/ui.tabs.js
@@ -3,15 +3,22 @@
*/

var tabs_defaults = {
add: null,
ajaxOptions: null,
cache: false,
collapsible: false,
cookie: null,
disable: null,
disabled: [],
enable: null,
event: 'click',
fx: null,
idPrefix: 'ui-tabs-',
load: null,
panelTemplate: '<div></div>',
remove: null,
select: null,
show: null,
spinner: '<em>Loading&#8230;</em>',
tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'
};
@@ -629,15 +629,22 @@ $.widget("ui.tabs", {
$.extend($.ui.tabs, {
version: '@VERSION',
defaults: {
add: null,
ajaxOptions: null,
cache: false,
cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
collapsible: false,
disable: null,
disabled: [],
enable: null,
event: 'click',
fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 }
idPrefix: 'ui-tabs-',
load: null,
panelTemplate: '<div></div>',
remove: null,
select: null,
show: null,
spinner: '<em>Loading&#8230;</em>',
tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'
}

0 comments on commit 82df8db

Please sign in to comment.
You can’t perform that action at this time.