Index: trunk/extensions/UsabilityInitiative/Vector/Modules/CollapsibleTabs/CollapsibleTabs.js |
— | — | @@ -52,10 +52,10 @@ |
53 | 53 | }).collapsibleTabs({ |
54 | 54 | expandCondition: function(eleWidth) { |
55 | 55 | if( rtl ){ |
56 | | - return ( $j('#right-navigation').position().left + $j('#right-navigation').width()) |
| 56 | + return ( $j('#right-navigation').position().left + $j('#right-navigation').width() + 1) |
57 | 57 | < ($j('#left-navigation').position().left - eleWidth); |
58 | 58 | } else { |
59 | | - return ( $j('#left-navigation').position().left + $j('#left-navigation').width()) |
| 59 | + return ( $j('#left-navigation').position().left + $j('#left-navigation').width() + 1) |
60 | 60 | < ($j('#right-navigation').position().left - eleWidth); |
61 | 61 | } |
62 | 62 | }, |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.hooks.php |
— | — | @@ -12,15 +12,15 @@ |
13 | 13 | |
14 | 14 | static $scripts = array( |
15 | 15 | 'raw' => array( |
16 | | - array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 1 ), |
| 16 | + array( 'src' => 'Modules/CollapsibleTabs/CollapsibleTabs.js', 'version' => 2 ), |
17 | 17 | array( 'src' => 'Modules/EditWarning/EditWarning.js', 'version' => 1 ), |
18 | 18 | array( 'src' => 'Modules/SimpleSearch/SimpleSearch.js', 'version' => 1 ), |
19 | 19 | ), |
20 | 20 | 'combined' => array( |
21 | | - array( 'src' => 'Vector.combined.js', 'version' => 1 ), |
| 21 | + array( 'src' => 'Vector.combined.js', 'version' => 2 ), |
22 | 22 | ), |
23 | 23 | 'minified' => array( |
24 | | - array( 'src' => 'Vector.combined.min.js', 'version' => 1 ), |
| 24 | + array( 'src' => 'Vector.combined.min.js', 'version' => 2 ), |
25 | 25 | ), |
26 | 26 | ); |
27 | 27 | static $modules = array( |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.js |
— | — | @@ -52,10 +52,10 @@ |
53 | 53 | }).collapsibleTabs({ |
54 | 54 | expandCondition: function(eleWidth) { |
55 | 55 | if( rtl ){ |
56 | | - return ( $j('#right-navigation').position().left + $j('#right-navigation').width()) |
| 56 | + return ( $j('#right-navigation').position().left + $j('#right-navigation').width() + 1) |
57 | 57 | < ($j('#left-navigation').position().left - eleWidth); |
58 | 58 | } else { |
59 | | - return ( $j('#left-navigation').position().left + $j('#left-navigation').width()) |
| 59 | + return ( $j('#left-navigation').position().left + $j('#left-navigation').width() + 1) |
60 | 60 | < ($j('#right-navigation').position().left - eleWidth); |
61 | 61 | } |
62 | 62 | }, |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.min.js |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | |
3 | 3 | js2AddOnloadHook(function(){var rtl=$j('body.rtl').size()?true:false;$j.collapsibleTabs.moveToCollapsed=function(ele){var $moving=$j(ele);$j($moving.data('collapsibleTabsSettings').expandedContainer).data('collapsibleTabsSettings').shifting=true;var data=$moving.data('collapsibleTabsSettings');var target=$moving.data('collapsibleTabsSettings').collapsedContainer;$moving.css("position","relative").css((rtl?'left':'right'),0);$moving.animate({width:'1px'},"normal",function(){$j(this).hide();$j('<span class="placeholder" style="display:none;"></span>').insertAfter(this);$j(this).remove().prependTo(target).data('collapsibleTabsSettings',data);$j(this).attr('style','display:list-item;');$j($j(ele).data('collapsibleTabsSettings').expandedContainer).data('collapsibleTabsSettings').shifting=false;$j.collapsibleTabs.handleResize();});};$j.collapsibleTabs.moveToExpanded=function(ele){var $moving=$j(ele);$j($moving.data('collapsibleTabsSettings').expandedContainer).data('collapsibleTabsSettings').shifting=true;var data=$moving.data('collapsibleTabsSettings');var $target=$j($moving.data('collapsibleTabsSettings').expandedContainer).find('span.placeholder:first');var expandedWidth=$moving.data('collapsibleTabsSettings').expandedWidth;$moving.css("position","relative").css((rtl?'right':'left'),0).css('width','1px');$target.replaceWith($moving.remove().css('width','1px').data('collapsibleTabsSettings',data).animate({width:expandedWidth+"px"},"normal",function(){$j(this).attr('style','display:block;');$j($moving.data('collapsibleTabsSettings').expandedContainer).data('collapsibleTabsSettings').shifting=false;$j.collapsibleTabs.handleResize();}));};$j('#p-views ul').bind("beforeTabCollapse",function(){if($j('#p-cactions').css('display')=='none') |
4 | 4 | $j("#p-cactions").addClass("filledPortlet").removeClass("emptyPortlet").find('h5').css('width','1px').animate({'width':'26px'},390);}).bind("beforeTabExpand",function(){if($j('#p-cactions li').length==1) |
5 | | -$j("#p-cactions h5").animate({'width':'1px'},370,function(){$j(this).attr('style','').parent().addClass("emptyPortlet").removeClass("filledPortlet");});}).collapsibleTabs({expandCondition:function(eleWidth){if(rtl){return($j('#right-navigation').position().left+$j('#right-navigation').width())<($j('#left-navigation').position().left-eleWidth);}else{return($j('#left-navigation').position().left+$j('#left-navigation').width())<($j('#right-navigation').position().left-eleWidth);}},collapseCondition:function(){if(rtl){return($j('#right-navigation').position().left+$j('#right-navigation').width())>$j('#left-navigation').position().left;}else{return($j('#left-navigation').position().left+$j('#left-navigation').width())>$j('#right-navigation').position().left;}}});});js2AddOnloadHook(function(){if(!wgVectorPreferences||!(wgVectorPreferences.editwarning&&wgVectorPreferences.editwarning.enable)){return true;} |
| 5 | +$j("#p-cactions h5").animate({'width':'1px'},370,function(){$j(this).attr('style','').parent().addClass("emptyPortlet").removeClass("filledPortlet");});}).collapsibleTabs({expandCondition:function(eleWidth){if(rtl){return($j('#right-navigation').position().left+$j('#right-navigation').width()+1)<($j('#left-navigation').position().left-eleWidth);}else{return($j('#left-navigation').position().left+$j('#left-navigation').width()+1)<($j('#right-navigation').position().left-eleWidth);}},collapseCondition:function(){if(rtl){return($j('#right-navigation').position().left+$j('#right-navigation').width())>$j('#left-navigation').position().left;}else{return($j('#left-navigation').position().left+$j('#left-navigation').width())>$j('#right-navigation').position().left;}}});});js2AddOnloadHook(function(){if(!wgVectorPreferences||!(wgVectorPreferences.editwarning&&wgVectorPreferences.editwarning.enable)){return true;} |
6 | 6 | $j('#wpTextbox1, #wpSummary').each(function(){$j(this).data('origtext',$j(this).val());});fallbackWindowOnBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){var fallbackResult=null;if(fallbackWindowOnBeforeUnload){fallbackResult=fallbackWindowOnBeforeUnload();} |
7 | 7 | if(fallbackResult!==null){return fallbackResult;} |
8 | 8 | if($j('#wpTextbox1').data('origtext')!=$j('#wpTextbox1').val()||$j('#wpSummary').data('origtext')!=$j('#wpSummary').val()||$j('#wikiPreview').is(':visible')){return gM('vector-editwarning-warning');}} |