http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73047
Revision: 73047
Author: tparscal
Date: 2010-09-15 02:07:57 +0000 (Wed, 15 Sep 2010)
Log Message:
-----------
Fixed lots of syntax errors and added in needed dependency information
Modified Paths:
--------------
trunk/extensions/Vector/Vector.hooks.php
trunk/extensions/Vector/modules/vector.collapsibleNav.css
trunk/extensions/Vector/modules/vector.collapsibleNav.js
trunk/extensions/Vector/modules/vector.collapsibleTabs.js
Added Paths:
-----------
trunk/extensions/Vector/modules/images/
Modified: trunk/extensions/Vector/Vector.hooks.php
===================================================================
--- trunk/extensions/Vector/Vector.hooks.php 2010-09-15 02:03:24 UTC (rev
73046)
+++ trunk/extensions/Vector/Vector.hooks.php 2010-09-15 02:07:57 UTC (rev
73047)
@@ -19,7 +19,13 @@
'messages' => array(
'vector-collapsiblenav-more',
),
- 'dependencies' => array( 'jquery.client' ),
+ 'dependencies' => array(
+ 'jquery.client',
+ 'jquery.cookie',
+ 'jquery.tabIndex',
+ 'jquery.collapsibleTabs',
+ 'jquery.delayedBind',
+ ),
),
'preferences' => array(
'key' => 'vector-collapsiblenav',
Modified: trunk/extensions/Vector/modules/vector.collapsibleNav.css
===================================================================
--- trunk/extensions/Vector/modules/vector.collapsibleNav.css 2010-09-15
02:03:24 UTC (rev 73046)
+++ trunk/extensions/Vector/modules/vector.collapsibleNav.css 2010-09-15
02:07:57 UTC (rev 73047)
@@ -1,6 +1,6 @@
/* Prototype code to show collapsing left nav options */
#mw-panel.collapsible-nav div.portal {
-
background-image:url(../images/vector/collapsibleNav/portal-break.png?1);
+ background-image:url(images/portal-break.png?1);
background-position:left top;
background-repeat:no-repeat;
padding: 0.25em 0 !important;
@@ -13,21 +13,21 @@
#mw-panel.collapsible-nav div.portal h5 {
color: #4D4D4D;
font-weight: normal;
- background: url(../images/vector/collapsibleNav/arrow-down.png?1) 0 50%
no-repeat;
+ background: url(images/arrow-down.png?1) 0 50% no-repeat;
padding: 4px 0 3px 1.5em;
margin-bottom: 0px;
}
body.rtl #mw-panel.collapsible-nav div.portal h5 {
- background: url(../images/vector/collapsibleNav/arrow-down.png?1) 100%
50% no-repeat;
+ background: url(images/arrow-down.png?1) 100% 50% no-repeat;
padding: 4px 1.5em 3px 0;
}
#mw-panel.collapsible-nav div.collapsed h5 {
color: #0645AD;
- background: url(../images/vector/collapsibleNav/arrow-right.png?1) 0
50% no-repeat;
+ background: url(images/arrow-right.png?1) 0 50% no-repeat;
margin-bottom: 0px;
}
body.rtl #mw-panel.collapsible-nav div.collapsed h5 {
- background: url(../images/vector/collapsibleNav/arrow-left.png?1) 100%
50% no-repeat;
+ background: url(images/arrow-left.png?1) 100% 50% no-repeat;
}
#mw-panel.collapsible-nav div h5:hover {
cursor: pointer;
Modified: trunk/extensions/Vector/modules/vector.collapsibleNav.js
===================================================================
--- trunk/extensions/Vector/modules/vector.collapsibleNav.js 2010-09-15
02:03:24 UTC (rev 73046)
+++ trunk/extensions/Vector/modules/vector.collapsibleNav.js 2010-09-15
02:07:57 UTC (rev 73047)
@@ -203,7 +203,7 @@
var $headings = $( '#mw-panel > div.portal:not(.persistent) > h5' );
// Get the highest tab index
- var tabIndex = mw.usability.getMaxTabIndex() + 1;
+ var tabIndex = $( document ).lastTabIndex() + 1;
// Fix the search not having a tabindex
$( '#searchInput' ).attr( 'tabindex', tabIndex++ );
// Make it keyboard accessible
Modified: trunk/extensions/Vector/modules/vector.collapsibleTabs.js
===================================================================
--- trunk/extensions/Vector/modules/vector.collapsibleTabs.js 2010-09-15
02:03:24 UTC (rev 73046)
+++ trunk/extensions/Vector/modules/vector.collapsibleTabs.js 2010-09-15
02:07:57 UTC (rev 73047)
@@ -49,12 +49,12 @@
if( $( '#p-cactions' ).css( 'display' ) == 'none' )
$( "#p-cactions" ).addClass( "filledPortlet" ).removeClass(
"emptyPortlet" )
.find( 'h5' ).css( 'width','1px' ).animate( {
'width':'26px' }, 390 );
- }).bind( "beforeTabExpand", function() {
+ } ).bind( "beforeTabExpand", function() {
if( $( '#p-cactions li' ).length == 1 )
$( "#p-cactions h5" ).animate( { 'width':'1px' }, 370,
function() {
$( this ).attr( 'style', '' ).parent().addClass(
"emptyPortlet" ).removeClass( "filledPortlet" );
});
- }).collapsibleTabs( {
+ } ).collapsibleTabs( {
expandCondition: function( eleWidth ) {
if( rtl ){
return ( $( '#right-navigation'
).position().left + $( '#right-navigation' ).width() + 1 )
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs