r59839 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59838‎ | r59839 | r59840 >
Date:19:07, 8 December 2009
Author:tparscal
Status:ok
Tags:
Comment:
Added UI resize triggers to expand and collapse actions on the TOC.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js
@@ -127,7 +127,11 @@
128128 context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).fadeIn( 'fast' );
129129 } )
130130 .prev()
131 - .animate( { 'marginRight': '-1px' }, 'fast', function() { $( this ).css( 'marginRight', 0 ); } )
 131+ .animate( { 'marginRight': '-1px' }, 'fast', function() {
 132+ $( this ).css( 'marginRight', 0 );
 133+ // Let the UI know things have moved around
 134+ context.fn.trigger( 'resize' );
 135+ } )
132136 .children()
133137 .animate( { 'marginRight': '1px' }, 'fast', function() { $( this ).css( 'marginRight', 0 ); } );
134138 $.cookie( 'wikiEditor-' + context.instance + '-toc-width', 0 );
@@ -149,6 +153,8 @@
150154 .animate( { 'width' : openWidth }, 'fast', function() {
151155 context.$content.trigger( 'mouseup' );
152156 $( this ).css( { 'position': 'relative', 'right': 'auto', 'top': 'auto' } );
 157+ // Let the UI know things have moved around
 158+ context.fn.trigger( 'resize' );
153159 } )
154160 .prev()
155161 .animate( { 'marginRight': ( parseFloat( openWidth ) * -1 ) }, 'fast' )

Follow-up revisions

RevisionCommit summaryAuthorDate
r59849UsabilityInitiative: Recombine and bump style versions for r59838, r59839, r5...catrope20:58, 8 December 2009

Status & tagging log