r60995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60994‎ | r60995 | r60996 >
Date:23:49, 12 January 2010
Author:adam
Status:ok
Tags:
Comment:
Repairing the auto ellipsing of the NTOC. Adding the functionallity to jquery.autoEllipsis.js to restore the text it truncates
Modified paths:
  • /trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/combined.min.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/css/wikiEditor.toc.css (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins.combined.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.autoEllipsis.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -25,16 +25,16 @@
2626 array( 'src' => 'css/wikiEditor.dialogs.css', 'version' => 10 ),
2727 array( 'src' => 'css/wikiEditor.preview.css', 'version' => 1 ),
2828 array( 'src' => 'css/wikiEditor.templateEditor.css', 'version' => 1 ),
29 - array( 'src' => 'css/wikiEditor.toc.css', 'version' => 25 ),
 29+ array( 'src' => 'css/wikiEditor.toc.css', 'version' => 26 ),
3030 array( 'src' => 'css/wikiEditor.toolbar.css', 'version' => 8 ),
3131 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3232 ),
3333 'combined' => array(
34 - array( 'src' => 'css/combined.css', 'version' => 47 ),
 34+ array( 'src' => 'css/combined.css', 'version' => 48 ),
3535 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
3636 ),
3737 'minified' => array(
38 - array( 'src' => 'css/combined.min.css', 'version' => 47 ),
 38+ array( 'src' => 'css/combined.min.css', 'version' => 48 ),
3939 array( 'src' => 'css/vector/jquery-ui-1.7.2.css', 'version' => '1.7.2y' ),
4040 ),
4141 )
@@ -75,7 +75,7 @@
7676
7777 // Core functionality of extension scripts
7878 array( 'src' => 'js/plugins/jquery.async.js', 'version' => 3 ),
79 - array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 5 ),
 79+ array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 6 ),
8080 array( 'src' => 'js/plugins/jquery.browser.js', 'version' => 3 ),
8181 array( 'src' => 'js/plugins/jquery.collapsibleTabs.js', 'version' => 5 ),
8282 array( 'src' => 'js/plugins/jquery.cookie.js', 'version' => 3 ),
@@ -88,16 +88,16 @@
8989 array( 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', 'version' => 12 ),
9090 array( 'src' => 'js/plugins/jquery.wikiEditor.toolbar.js', 'version' => 40 ),
9191 array( 'src' => 'js/plugins/jquery.wikiEditor.dialogs.js', 'version' => 10 ),
92 - array( 'src' => 'js/plugins/jquery.wikiEditor.toc.js', 'version' => 59 ),
 92+ array( 'src' => 'js/plugins/jquery.wikiEditor.toc.js', 'version' => 60 ),
9393 array( 'src' => 'js/plugins/jquery.wikiEditor.preview.js', 'version' => 9 ),
9494 array( 'src' => 'js/plugins/jquery.wikiEditor.templateEditor.js', 'version' => 14 ),
9595 array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 1 ),
9696 ),
9797 'combined' => array(
98 - array( 'src' => 'js/plugins.combined.js', 'version' => 138 ),
 98+ array( 'src' => 'js/plugins.combined.js', 'version' => 139 ),
9999 ),
100100 'minified' => array(
101 - array( 'src' => 'js/plugins.combined.min.js', 'version' => 138 ),
 101+ array( 'src' => 'js/plugins.combined.min.js', 'version' => 139 ),
102102 ),
103103 ),
104104 );
Index: trunk/extensions/UsabilityInitiative/css/wikiEditor.toc.css
@@ -61,41 +61,41 @@
6262 cursor: pointer;
6363 color: #0645ad;
6464 }
65 -.wikiEditor-ui-toc ul li div span {
 65+.wikiEditor-ui-toc ul li div {
6666 padding: 0.125em;
6767 padding-left: 1em;
6868 }
69 -body.rtl .wikiEditor-ui-toc ul li div span {
 69+body.rtl .wikiEditor-ui-toc ul li div {
7070 padding-right: 1em;
7171 }
72 -.wikiEditor-ui-toc ul ul li div span {
 72+.wikiEditor-ui-toc ul ul li div {
7373 padding-left: 2em;
7474 }
75 -body.rtl .wikiEditor-ui-toc ul ul li div span {
 75+body.rtl .wikiEditor-ui-toc ul ul li div {
7676 padding-right: 2em;
7777 }
78 -.wikiEditor-ui-toc ul ul ul li div span {
 78+.wikiEditor-ui-toc ul ul ul li div {
7979 padding-left: 3em;
8080 }
81 -body.rtl .wikiEditor-ui-toc ul ul ul li div span {
 81+body.rtl .wikiEditor-ui-toc ul ul ul li div {
8282 padding-right: 3em;
8383 }
84 -.wikiEditor-ui-toc ul ul ul ul li div span {
 84+.wikiEditor-ui-toc ul ul ul ul li div {
8585 padding-left: 4em;
8686 }
87 -body.rtl .wikiEditor-ui-toc ul ul ul ul li div span {
 87+body.rtl .wikiEditor-ui-toc ul ul ul ul li div {
8888 padding-right: 4em;
8989 }
90 -.wikiEditor-ui-toc ul ul ul ul ul li div span {
 90+.wikiEditor-ui-toc ul ul ul ul ul li div {
9191 padding-left: 5em;
9292 }
93 -body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div span {
 93+body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div {
9494 padding-right: 5em;
9595 }
96 -.wikiEditor-ui-toc ul ul ul ul ul ul li div span {
 96+.wikiEditor-ui-toc ul ul ul ul ul ul li div {
9797 padding-left: 6em;
9898 }
99 -body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div span {
 99+body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div {
100100 padding-right: 6em;
101101 }
102102 .wikiEditor-ui-toc ul li div.current {
Index: trunk/extensions/UsabilityInitiative/css/combined.css
@@ -327,41 +327,41 @@
328328 cursor: pointer;
329329 color: #0645ad;
330330 }
331 -.wikiEditor-ui-toc ul li div span {
 331+.wikiEditor-ui-toc ul li div {
332332 padding: 0.125em;
333333 padding-left: 1em;
334334 }
335 -body.rtl .wikiEditor-ui-toc ul li div span {
 335+body.rtl .wikiEditor-ui-toc ul li div {
336336 padding-right: 1em;
337337 }
338 -.wikiEditor-ui-toc ul ul li div span {
 338+.wikiEditor-ui-toc ul ul li div {
339339 padding-left: 2em;
340340 }
341 -body.rtl .wikiEditor-ui-toc ul ul li div span {
 341+body.rtl .wikiEditor-ui-toc ul ul li div {
342342 padding-right: 2em;
343343 }
344 -.wikiEditor-ui-toc ul ul ul li div span {
 344+.wikiEditor-ui-toc ul ul ul li div {
345345 padding-left: 3em;
346346 }
347 -body.rtl .wikiEditor-ui-toc ul ul ul li div span {
 347+body.rtl .wikiEditor-ui-toc ul ul ul li div {
348348 padding-right: 3em;
349349 }
350 -.wikiEditor-ui-toc ul ul ul ul li div span {
 350+.wikiEditor-ui-toc ul ul ul ul li div {
351351 padding-left: 4em;
352352 }
353 -body.rtl .wikiEditor-ui-toc ul ul ul ul li div span {
 353+body.rtl .wikiEditor-ui-toc ul ul ul ul li div {
354354 padding-right: 4em;
355355 }
356 -.wikiEditor-ui-toc ul ul ul ul ul li div span {
 356+.wikiEditor-ui-toc ul ul ul ul ul li div {
357357 padding-left: 5em;
358358 }
359 -body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div span {
 359+body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div {
360360 padding-right: 5em;
361361 }
362 -.wikiEditor-ui-toc ul ul ul ul ul ul li div span {
 362+.wikiEditor-ui-toc ul ul ul ul ul ul li div {
363363 padding-left: 6em;
364364 }
365 -body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div span {
 365+body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div {
366366 padding-right: 6em;
367367 }
368368 .wikiEditor-ui-toc ul li div.current {
Index: trunk/extensions/UsabilityInitiative/css/combined.min.css
@@ -306,41 +306,41 @@
307307 cursor:pointer;
308308 color:#0645ad;
309309 }
310 -.wikiEditor-ui-toc ul li div span{
 310+.wikiEditor-ui-toc ul li div{
311311 padding:0.125em;
312312 padding-left:1em;
313313 }
314 -body.rtl .wikiEditor-ui-toc ul li div span{
 314+body.rtl .wikiEditor-ui-toc ul li div{
315315 padding-right:1em;
316316 }
317 -.wikiEditor-ui-toc ul ul li div span{
 317+.wikiEditor-ui-toc ul ul li div{
318318 padding-left:2em;
319319 }
320 -body.rtl .wikiEditor-ui-toc ul ul li div span{
 320+body.rtl .wikiEditor-ui-toc ul ul li div{
321321 padding-right:2em;
322322 }
323 -.wikiEditor-ui-toc ul ul ul li div span{
 323+.wikiEditor-ui-toc ul ul ul li div{
324324 padding-left:3em;
325325 }
326 -body.rtl .wikiEditor-ui-toc ul ul ul li div span{
 326+body.rtl .wikiEditor-ui-toc ul ul ul li div{
327327 padding-right:3em;
328328 }
329 -.wikiEditor-ui-toc ul ul ul ul li div span{
 329+.wikiEditor-ui-toc ul ul ul ul li div{
330330 padding-left:4em;
331331 }
332 -body.rtl .wikiEditor-ui-toc ul ul ul ul li div span{
 332+body.rtl .wikiEditor-ui-toc ul ul ul ul li div{
333333 padding-right:4em;
334334 }
335 -.wikiEditor-ui-toc ul ul ul ul ul li div span{
 335+.wikiEditor-ui-toc ul ul ul ul ul li div{
336336 padding-left:5em;
337337 }
338 -body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div span{
 338+body.rtl .wikiEditor-ui-toc ul ul ul ul ul li div{
339339 padding-right:5em;
340340 }
341 -.wikiEditor-ui-toc ul ul ul ul ul ul li div span{
 341+.wikiEditor-ui-toc ul ul ul ul ul ul li div{
342342 padding-left:6em;
343343 }
344 -body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div span{
 344+body.rtl wikiEditor-ui-toc ul ul ul ul ul ul li div{
345345 padding-right:6em;
346346 }
347347 .wikiEditor-ui-toc ul li div.current{
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js
@@ -346,6 +346,7 @@
347347 if( ui.size.width < parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) ) {
348348 context.modules.toc.$toc.trigger( 'collapse' );
349349 } else {
 350+ context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true, 'restoreText': true } );
350351 context.modules.toc.$toc.data( 'openWidth', ui.size.width );
351352 $.cookie( 'wikiEditor-' + context.instance + '-toc-width', ui.size.width );
352353 }
@@ -414,7 +415,7 @@
415416 buildResizeControls();
416417 buildCollapseControls();
417418 }
418 - context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true } );
 419+ context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true, 'restoreText': true } );
419420 }
420421 }
421422 }
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.autoEllipsis.js
@@ -7,8 +7,16 @@
88 $(this).each( function() {
99 options = $.extend( {
1010 'position': 'center',
11 - 'tooltip': false
 11+ 'tooltip': false,
 12+ 'restoreText': false
1213 }, options );
 14+ if ( options.restoreText ) {
 15+ if ( ! $( this ).data( 'autoEllipsis.originalText' ) ) {
 16+ $( this ).data( 'autoEllipsis.originalText', $( this ).text() );
 17+ } else {
 18+ $( this ).text( $( this ).data( 'autoEllipsis.originalText' ) );
 19+ }
 20+ }
1321 var text = $(this).text();
1422 var $text = $( '<span />' ).text( text ).css( 'whiteSpace', 'nowrap' );
1523 $(this).empty().append( $text );
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js
@@ -5134,8 +5134,16 @@
51355135 $(this).each( function() {
51365136 options = $.extend( {
51375137 'position': 'center',
5138 - 'tooltip': false
 5138+ 'tooltip': false,
 5139+ 'restoreText': false
51395140 }, options );
 5141+ if ( options.restoreText ) {
 5142+ if ( ! $( this ).data( 'autoEllipsis.originalText' ) ) {
 5143+ $( this ).data( 'autoEllipsis.originalText', $( this ).text() );
 5144+ } else {
 5145+ $( this ).text( $( this ).data( 'autoEllipsis.originalText' ) );
 5146+ }
 5147+ }
51405148 var text = $(this).text();
51415149 var $text = $( '<span />' ).text( text ).css( 'whiteSpace', 'nowrap' );
51425150 $(this).empty().append( $text );
@@ -8676,6 +8684,7 @@
86778685 if( ui.size.width < parseFloat( $.wikiEditor.modules.toc.cfg.minimumWidth ) ) {
86788686 context.modules.toc.$toc.trigger( 'collapse' );
86798687 } else {
 8688+ context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true, 'restoreText': true } );
86808689 context.modules.toc.$toc.data( 'openWidth', ui.size.width );
86818690 $.cookie( 'wikiEditor-' + context.instance + '-toc-width', ui.size.width );
86828691 }
@@ -8744,7 +8753,7 @@
87458754 buildResizeControls();
87468755 buildCollapseControls();
87478756 }
8748 - context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true } );
 8757+ context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true, 'restoreText': true } );
87498758 }
87508759 }
87518760 }
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js
@@ -354,7 +354,8 @@
355355 {var i=0,l=array.length,loop=opts.loop||function(){};$.whileAsync($.extend(opts,{test:function(){return i<l;},loop:function()
356356 {var val=array[i];return loop.call(val,i++,val);}}));}
357357 $.fn.eachAsync=function(opts)
358 -{$.eachAsync(this,opts);return this;}})(jQuery);(function($){$.fn.autoEllipsis=function(options){$(this).each(function(){options=$.extend({'position':'center','tooltip':false},options);var text=$(this).text();var $text=$('<span />').text(text).css('whiteSpace','nowrap');$(this).empty().append($text);if($text.width()>$(this).width()){switch(options.position){case'right':var l=0,r=text.length;do{var m=Math.ceil((l+r)/2);$text.text(text.substr(0,m)+'...');if($text.width()>$(this).width()){r=m-1;}else{l=m;}}while(l<r);$text.text(text.substr(0,l)+'...');break;case'center':var i=[Math.round(text.length/2),Math.round(text.length/2)];var side=1;while($text.outerWidth()>($(this).width())&&i[0]>0){$text.text(text.substr(0,i[0])+'...'+text.substr(i[1]));if(side==0){i[0]--;side=1;}else{i[1]++;side=0;}}
 358+{$.eachAsync(this,opts);return this;}})(jQuery);(function($){$.fn.autoEllipsis=function(options){$(this).each(function(){options=$.extend({'position':'center','tooltip':false,'restoreText':false},options);if(options.restoreText){if(!$(this).data('autoEllipsis.originalText')){$(this).data('autoEllipsis.originalText',$(this).text());}else{$(this).text($(this).data('autoEllipsis.originalText'));}}
 359+var text=$(this).text();var $text=$('<span />').text(text).css('whiteSpace','nowrap');$(this).empty().append($text);if($text.width()>$(this).width()){switch(options.position){case'right':var l=0,r=text.length;do{var m=Math.ceil((l+r)/2);$text.text(text.substr(0,m)+'...');if($text.width()>$(this).width()){r=m-1;}else{l=m;}}while(l<r);$text.text(text.substr(0,l)+'...');break;case'center':var i=[Math.round(text.length/2),Math.round(text.length/2)];var side=1;while($text.outerWidth()>($(this).width())&&i[0]>0){$text.text(text.substr(0,i[0])+'...'+text.substr(i[1]));if(side==0){i[0]--;side=1;}else{i[1]++;side=0;}}
359360 break;case'left':var r=0;while($text.outerWidth()>$(this).width()&&r<text.length){$text.text('...'+text.substr(r));r++;}
360361 break;}
361362 if(options.tooltip)
@@ -569,7 +570,7 @@
570571 list.append(item);}
571572 return list;}
572573 function buildCollapseControls(){var $collapseControl=$('<div />'),$expandControl=$('<div />');$collapseControl.addClass('tab').addClass('tab-toc').append('<a href="#" />').bind('click.wikiEditor-toc',function(){context.modules.toc.$toc.trigger('collapse.wikiEditor-toc');return false;}).find('a').text(gM('wikieditor-toc-hide'));$expandControl.addClass('wikiEditor-ui-toc-expandControl').append('<a href="#" />').bind('click.wikiEditor-toc',function(){context.modules.toc.$toc.trigger('expand.wikiEditor-toc');return false;}).hide().find('a').text(gM('wikieditor-toc-show'));$collapseControl.insertBefore(context.modules.toc.$toc);context.$ui.find('.wikiEditor-ui-left .wikiEditor-ui-top').append($expandControl);context.fn.trigger('resize');}
573 -function buildResizeControls(){context.$ui.data('resizableDone',true).find('.wikiEditor-ui-right').data('wikiEditor-ui-left',context.$ui.find('.wikiEditor-ui-left')).resizable({handles:'w,e',preventPositionLeftChange:true,minWidth:50,start:function(e,ui){var $this=$(this);$('<div />').addClass('wikiEditor-ui-resize-mask').css({'position':'absolute','z-index':2,'left':0,'top':0,'bottom':0,'right':0}).appendTo(context.$ui.find('.wikiEditor-ui-left'));$this.resizable('option','maxWidth',$this.parent().width()-450);},resize:function(e,ui){$(this).css({'width':ui.size.width,'top':'auto','height':'auto'}).data('wikiEditor-ui-left').css('marginRight',(-1*ui.size.width)).children().css('marginRight',ui.size.width);context.fn.trigger('resize');},stop:function(e,ui){context.$ui.find('.wikiEditor-ui-resize-mask').remove();context.$content.trigger('mouseup');if(ui.size.width<parseFloat($.wikiEditor.modules.toc.cfg.minimumWidth)){context.modules.toc.$toc.trigger('collapse');}else{context.modules.toc.$toc.data('openWidth',ui.size.width);$.cookie('wikiEditor-'+context.instance+'-toc-width',ui.size.width);}
 574+function buildResizeControls(){context.$ui.data('resizableDone',true).find('.wikiEditor-ui-right').data('wikiEditor-ui-left',context.$ui.find('.wikiEditor-ui-left')).resizable({handles:'w,e',preventPositionLeftChange:true,minWidth:50,start:function(e,ui){var $this=$(this);$('<div />').addClass('wikiEditor-ui-resize-mask').css({'position':'absolute','z-index':2,'left':0,'top':0,'bottom':0,'right':0}).appendTo(context.$ui.find('.wikiEditor-ui-left'));$this.resizable('option','maxWidth',$this.parent().width()-450);},resize:function(e,ui){$(this).css({'width':ui.size.width,'top':'auto','height':'auto'}).data('wikiEditor-ui-left').css('marginRight',(-1*ui.size.width)).children().css('marginRight',ui.size.width);context.fn.trigger('resize');},stop:function(e,ui){context.$ui.find('.wikiEditor-ui-resize-mask').remove();context.$content.trigger('mouseup');if(ui.size.width<parseFloat($.wikiEditor.modules.toc.cfg.minimumWidth)){context.modules.toc.$toc.trigger('collapse');}else{context.modules.toc.$toc.find('div').autoEllipsis({'position':'right','tooltip':true,'restoreText':true});context.modules.toc.$toc.data('openWidth',ui.size.width);$.cookie('wikiEditor-'+context.instance+'-toc-width',ui.size.width);}
574575 context.fn.trigger('resize');}});var handle=$.wikiEditor.modules.toc.cfg.rtl?'w':'e';context.$ui.find('.ui-resizable-'+handle).removeClass('ui-resizable-'+handle).addClass('ui-resizable-'+(handle=='w'?'e':'w')).addClass('wikiEditor-ui-toc-resize-grip');context.modules.toc.$toc.bind('collapse.wikiEditor-toc',$.wikiEditor.modules.toc.fn.collapse).bind('expand.wikiEditor-toc',$.wikiEditor.modules.toc.fn.expand);context.modules.toc.$toc.data('openWidth',$.wikiEditor.modules.toc.cfg.defaultWidth);if($.cookie('wikiEditor-'+context.instance+'-toc-width')==0){context.modules.toc.$toc.trigger('collapse.wikiEditor-toc',{data:context});}else if($.cookie('wikiEditor-'+context.instance+'-toc-width')>0){var initialWidth=$.cookie('wikiEditor-'+context.instance+'-toc-width');if(initialWidth<parseFloat($.wikiEditor.modules.toc.cfg.minimumWidth))
575576 initialWidth=parseFloat($.wikiEditor.modules.toc.cfg.minimumWidth)+1;context.modules.toc.$toc.data('openWidth',initialWidth+'px');context.$ui.find('.wikiEditor-ui-right').css('width',initialWidth+'px');context.$ui.find('.wikiEditor-ui-left').css('marginRight',(parseFloat(initialWidth)*-1)+'px').children().css('marginRight',initialWidth+'px');}}
576577 if(context.data.outline){var outline=context.data.outline;var lastLevel=0;var nLevel=0;for(var i=0;i<outline.length;i++){if(outline[i].level>lastLevel){nLevel++;}
@@ -578,7 +579,7 @@
579580 outline[i].nLevel=nLevel;lastLevel=outline[i].level;}
580581 var structure=buildStructure(outline);if($('input[name=wpSection]').val()==''){structure.unshift({'text':wgPageName.replace(/_/g,' '),'level':1,'index':0});}
581582 context.modules.toc.$toc.html(buildList(structure));if(wgNavigableTOCResizable&&!context.$ui.data('resizableDone')){buildResizeControls();buildCollapseControls();}
582 -context.modules.toc.$toc.find('div').autoEllipsis({'position':'right','tooltip':true});}}}};$.ui.plugin.add("resizable","preventPositionLeftChange",{resize:function(event,ui){$(this).data("resizable").position.left=0;}});})(jQuery);(function($){$.wikiEditor.modules.toolbar={api:{addToToolbar:function(context,data){for(type in data){switch(type){case'sections':var $sections=context.modules.toolbar.$toolbar.find('div.sections');var $tabs=context.modules.toolbar.$toolbar.find('div.tabs');for(section in data[type]){if(section=='main'){context.modules.toolbar.$toolbar.prepend($.wikiEditor.modules.toolbar.fn.buildSection(context,section,data[type][section]));continue;}
 583+context.modules.toc.$toc.find('div').autoEllipsis({'position':'right','tooltip':true,'restoreText':true});}}}};$.ui.plugin.add("resizable","preventPositionLeftChange",{resize:function(event,ui){$(this).data("resizable").position.left=0;}});})(jQuery);(function($){$.wikiEditor.modules.toolbar={api:{addToToolbar:function(context,data){for(type in data){switch(type){case'sections':var $sections=context.modules.toolbar.$toolbar.find('div.sections');var $tabs=context.modules.toolbar.$toolbar.find('div.tabs');for(section in data[type]){if(section=='main'){context.modules.toolbar.$toolbar.prepend($.wikiEditor.modules.toolbar.fn.buildSection(context,section,data[type][section]));continue;}
583584 $sections.append($.wikiEditor.modules.toolbar.fn.buildSection(context,section,data[type][section]));$tabs.append($.wikiEditor.modules.toolbar.fn.buildTab(context,section,data[type][section]));$section=$sections.find('.section:visible');if($section.size()){$sections.animate({'height':$section.outerHeight()},'fast');}}
584585 break;case'groups':if(!('section'in data)){continue;}
585586 var $section=context.modules.toolbar.$toolbar.find('div[rel='+data.section+'].section');for(group in data[type]){$section.append($.wikiEditor.modules.toolbar.fn.buildGroup(context,group,data[type][group]));}

Status & tagging log