Skip to content

Commit

Permalink
Tabs: Added defaults for callback options. Fixed 4619 (Tabs doesn't d…
Browse files Browse the repository at this point in the history
…efine default for select option).
  • Loading branch information
scottgonzalez committed Jun 20, 2009
1 parent 3057d49 commit 82df8db
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/tabs/tabs_defaults.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,15 +3,22 @@
*/ */


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

0 comments on commit 82df8db

Please sign in to comment.