diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-24 10:19:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-24 10:19:38 +0000 |
commit | 308f84919500a0aed7d457322402b31efe41e47b (patch) | |
tree | caf481e5581319a279108e30eec5d1c7d5e915d1 /modules | |
parent | 92bd43b3ecfee9af69214c2a3751600a8dcb659e (diff) | |
download | brdo-308f84919500a0aed7d457322402b31efe41e47b.tar.gz brdo-308f84919500a0aed7d457322402b31efe41e47b.tar.bz2 |
- Patch #741726 by sun: move filter module's vertical tabs extensions into vertical-tabs.js.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.admin.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/modules/filter/filter.admin.js b/modules/filter/filter.admin.js index b4b946318..3ba6424af 100644 --- a/modules/filter/filter.admin.js +++ b/modules/filter/filter.admin.js @@ -1,46 +1,6 @@ // $Id$ - (function ($) { -/** - * Shows the vertical tab pane. - */ -Drupal.verticalTab.prototype.tabShow = function () { - // Display the tab. - this.item.show(); - // Update .first marker for items. We need recurse from parent to retain the - // actual DOM element order as jQuery implements sortOrder, but not as public - // method. - this.item.parent().children('.vertical-tab-button').removeClass('first') - .filter(':visible:first').addClass('first'); - // Display the fieldset. - this.fieldset.removeClass('filter-settings-hidden').show(); - // Focus this tab. - this.focus(); - return this; -}; - -/** - * Hides the vertical tab pane. - */ -Drupal.verticalTab.prototype.tabHide = function () { - // Hide this tab. - this.item.hide(); - // Update .first marker for items. We need recurse from parent to retain the - // actual DOM element order as jQuery implements sortOrder, but not as public - // method. - this.item.parent().children('.vertical-tab-button').removeClass('first') - .filter(':visible:first').addClass('first'); - // Hide the fieldset. - this.fieldset.addClass('filter-settings-hidden').hide(); - // Focus the first visible tab (if there is one). - var $firstTab = this.fieldset.siblings('.vertical-tabs-pane:not(.filter-settings-hidden):first'); - if ($firstTab.length) { - $firstTab.data('verticalTab').focus(); - } - return this; -}; - Drupal.behaviors.filterStatus = { attach: function (context, settings) { $('#filters-status-wrapper input.form-checkbox', context).once('filter-status', function () { |