summaryrefslogtreecommitdiff
path: root/extensions/Vector/modules/ext.vector.collapsibleTabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/Vector/modules/ext.vector.collapsibleTabs.js')
-rw-r--r--extensions/Vector/modules/ext.vector.collapsibleTabs.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/extensions/Vector/modules/ext.vector.collapsibleTabs.js b/extensions/Vector/modules/ext.vector.collapsibleTabs.js
deleted file mode 100644
index 439a1995..00000000
--- a/extensions/Vector/modules/ext.vector.collapsibleTabs.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Collapsible tabs for Vector
- */
-jQuery( function ( $ ) {
- var $cactions = $( '#p-cactions' );
-
- // Bind callback functions to animate our drop down menu in and out
- // and then call the collapsibleTabs function on the menu
- $( '#p-views ul' )
- .bind( 'beforeTabCollapse', function () {
- // If the dropdown was hidden, show it
- if ( $cactions.hasClass( 'emptyPortlet' ) ) {
- $cactions
- .removeClass( 'emptyPortlet' )
- .find( 'h3, h5' )
- .css( 'width', '1px' ).animate( { 'width': '24px' }, 390 );
- }
- } )
- .bind( 'beforeTabExpand', function () {
- // If we're removing the last child node right now, hide the dropdown
- if ( $cactions.find( 'li' ).length === 1 ) {
- $cactions.find( 'h3, h5' ).animate( { 'width': '1px' }, 390, function () {
- $( this ).attr( 'style', '' )
- .parent().addClass( 'emptyPortlet' );
- });
- }
- } )
- .collapsibleTabs();
-} );