summaryrefslogtreecommitdiffstats
path: root/vector/vector.js
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-19 00:33:07 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-19 00:33:07 +0200
commit9fdb309eb61f183b85ad84fa17b631a998100809 (patch)
treeb799befec06c86727f3351dc543a4c60d9a07085 /vector/vector.js
parent77ba80f434366c75ae0b73d561b843ff367ebd84 (diff)
downloadmediawiki-9fdb309eb61f183b85ad84fa17b631a998100809.tar
mediawiki-9fdb309eb61f183b85ad84fa17b631a998100809.tar.gz
mediawiki-9fdb309eb61f183b85ad84fa17b631a998100809.tar.bz2
mediawiki-9fdb309eb61f183b85ad84fa17b631a998100809.tar.xz
mediawiki-9fdb309eb61f183b85ad84fa17b631a998100809.zip
Fix layout ( bis )
Diffstat (limited to 'vector/vector.js')
-rw-r--r--vector/vector.js55
1 files changed, 0 insertions, 55 deletions
diff --git a/vector/vector.js b/vector/vector.js
deleted file mode 100644
index 0bc114a..0000000
--- a/vector/vector.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Vector-specific scripts
- */
-jQuery( function ( $ ) {
- $( 'div.vectorMenu' ).each( function () {
- var $el = $( this );
- $el.find( '> h3 > a' ).parent()
- .attr( 'tabindex', '0' )
- // For accessibility, show the menu when the h3 is clicked (bug 24298/46486)
- .on( 'click keypress', function ( e ) {
- if ( e.type === 'click' || e.which === 13 ) {
- $el.toggleClass( 'menuForceShow' );
- e.preventDefault();
- }
- } )
- // When the heading has focus, also set a class that will change the arrow icon
- .focus( function () {
- $el.find( '> a' ).addClass( 'vectorMenuFocus' );
- } )
- .blur( function () {
- $el.find( '> a' ).removeClass( 'vectorMenuFocus' );
- } )
- .find( '> a:first' )
- // As the h3 can already be focused there's no need for the link to be focusable
- .attr( 'tabindex', '-1' );
- } );
-
- /**
- * Collapsible tabs for Vector
- */
- 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' )
- .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' ).animate( { 'width': '1px' }, 390, function () {
- $( this ).attr( 'style', '' )
- .parent().addClass( 'emptyPortlet' );
- });
- }
- } )
- .collapsibleTabs();
-} );