Index: trunk/extensions/UsabilityInitiative/Vector/Modules/SimpleSearch/SimpleSearch.js |
— | — | @@ -100,12 +100,12 @@ |
101 | 101 | .addClass( 'special-query' ) |
102 | 102 | .text( query ) |
103 | 103 | .appendTo( $j(this) ); |
104 | | - $query.autoEllipse(); |
| 104 | + $query.autoEllipsis(); |
105 | 105 | } else { |
106 | 106 | $j(this).find( '.special-query' ) |
107 | 107 | .empty() |
108 | 108 | .text( query ) |
109 | | - .autoEllipse(); |
| 109 | + .autoEllipsis(); |
110 | 110 | } |
111 | 111 | } else { |
112 | 112 | $j(this).hide(); |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.js |
— | — | @@ -263,12 +263,12 @@ |
264 | 264 | .addClass( 'special-query' ) |
265 | 265 | .text( query ) |
266 | 266 | .appendTo( $j(this) ); |
267 | | - $query.autoEllipse(); |
| 267 | + $query.autoEllipsis(); |
268 | 268 | } else { |
269 | 269 | $j(this).find( '.special-query' ) |
270 | 270 | .empty() |
271 | 271 | .text( query ) |
272 | | - .autoEllipse(); |
| 272 | + .autoEllipsis(); |
273 | 273 | } |
274 | 274 | } else { |
275 | 275 | $j(this).hide(); |
Index: trunk/extensions/UsabilityInitiative/Vector/Vector.combined.min.js |
— | — | @@ -9,4 +9,4 @@ |
10 | 10 | if(wgAction=='submit'||$j('#wpTextbox1').data('origtext')!=$j('#wpTextbox1').val()||$j('#wpSummary').data('origtext')!=$j('#wpSummary').val()){return gM('vector-editwarning-warning');}} |
11 | 11 | $j('form').submit(function(){window.onbeforeunload=fallbackWindowOnBeforeUnload;});});var fallbackWindowOnBeforeUnload=null;if(typeof os_autoload_inputs!=='undefined'&&os_autoload_forms!=='undefined'){os_autoload_inputs=[];os_autoload_forms=[];} |
12 | 12 | mw.addOnloadHook(function(){if(!wgVectorEnabledModules.simplesearch||skin!='vector'){return true;} |
13 | | -$j('div#simpleSearch > input#searchInput').each(function(){$j('<label />').text(gM('vector-simplesearch-search')).css({'display':'none','position':'absolute','bottom':0,'padding':'0.25em','color':'#999999','cursor':'text'}).css(($j('body').is('.rtl')?'right':'left'),0).click(function(){$j(this).parent().find('input#searchInput').focus();}).appendTo($j(this).parent());if($j(this).val()==''){$j(this).parent().find('label').show();}}).focus(function(){$j(this).parent().find('label').hide();}).blur(function(){if($j(this).val()==''){$j(this).parent().find('label').show();}});$j('#searchInput, #searchInput2, #powerSearchText, #searchText').suggestions({fetch:function(query){var $this=$j(this);var request=$j.ajax({url:wgScriptPath+'/api.php',data:{'action':'opensearch','search':query,'namespace':0,'suggest':''},dataType:'json',success:function(data){$this.suggestions('suggestions',data[1]);}});$j(this).data('request',request);},cancel:function(){var request=$j(this).data('request');if(request&&typeof request.abort=='function'){request.abort();$j(this).removeData('request');}},result:{select:function($textbox){$textbox.closest('form').submit();}},delay:120});$j('#searchInput').suggestions({result:{select:function($textbox){$textbox.closest('form').submit();}},special:{render:function(query){var perfectMatch=false;$j(this).closest('.suggestions').find('.suggestions-results div').each(function(){if($j(this).data('text')==query){perfectMatch=true;}});if(perfectMatch){if($j(this).children().size()==0){$j(this).show();$label=$j('<div />').addClass('special-label').text(gM('vector-simplesearch-containing')).appendTo($j(this));$query=$j('<div />').addClass('special-query').text(query).appendTo($j(this));$query.autoEllipse();}else{$j(this).find('.special-query').empty().text(query).autoEllipse();}}else{$j(this).hide();$j(this).empty();}},select:function($textbox){$textbox.closest('form').append($j('<input />').attr({'type':'hidden','name':'fulltext','value':1}));$textbox.closest('form').submit();}},$region:$j('#simpleSearch')});}); |
\ No newline at end of file |
| 13 | +$j('div#simpleSearch > input#searchInput').each(function(){$j('<label />').text(gM('vector-simplesearch-search')).css({'display':'none','position':'absolute','bottom':0,'padding':'0.25em','color':'#999999','cursor':'text'}).css(($j('body').is('.rtl')?'right':'left'),0).click(function(){$j(this).parent().find('input#searchInput').focus();}).appendTo($j(this).parent());if($j(this).val()==''){$j(this).parent().find('label').show();}}).focus(function(){$j(this).parent().find('label').hide();}).blur(function(){if($j(this).val()==''){$j(this).parent().find('label').show();}});$j('#searchInput, #searchInput2, #powerSearchText, #searchText').suggestions({fetch:function(query){var $this=$j(this);var request=$j.ajax({url:wgScriptPath+'/api.php',data:{'action':'opensearch','search':query,'namespace':0,'suggest':''},dataType:'json',success:function(data){$this.suggestions('suggestions',data[1]);}});$j(this).data('request',request);},cancel:function(){var request=$j(this).data('request');if(request&&typeof request.abort=='function'){request.abort();$j(this).removeData('request');}},result:{select:function($textbox){$textbox.closest('form').submit();}},delay:120});$j('#searchInput').suggestions({result:{select:function($textbox){$textbox.closest('form').submit();}},special:{render:function(query){var perfectMatch=false;$j(this).closest('.suggestions').find('.suggestions-results div').each(function(){if($j(this).data('text')==query){perfectMatch=true;}});if(perfectMatch){if($j(this).children().size()==0){$j(this).show();$label=$j('<div />').addClass('special-label').text(gM('vector-simplesearch-containing')).appendTo($j(this));$query=$j('<div />').addClass('special-query').text(query).appendTo($j(this));$query.autoEllipsis();}else{$j(this).find('.special-query').empty().text(query).autoEllipsis();}}else{$j(this).hide();$j(this).empty();}},select:function($textbox){$textbox.closest('form').append($j('<input />').attr({'type':'hidden','name':'fulltext','value':1}));$textbox.closest('form').submit();}},$region:$j('#simpleSearch')});}); |
\ No newline at end of file |
Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | 'base_sets' => array( |
65 | 65 | 'raw' => array( |
66 | 66 | array( 'src' => 'js/plugins/jquery.async.js', 'version' => 3 ), |
67 | | - array( 'src' => 'js/plugins/jquery.autoEllipse.js', 'version' => 4 ), |
| 67 | + array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 5 ), |
68 | 68 | array( 'src' => 'js/plugins/jquery.browser.js', 'version' => 3 ), |
69 | 69 | array( 'src' => 'js/plugins/jquery.collapsibleTabs.js', 'version' => 5 ), |
70 | 70 | array( 'src' => 'js/plugins/jquery.cookie.js', 'version' => 3 ), |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 1 ), |
84 | 84 | ), |
85 | 85 | 'combined' => array( |
86 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 133 ), |
| 86 | + array( 'src' => 'js/plugins.combined.js', 'version' => 134 ), |
87 | 87 | ), |
88 | 88 | 'minified' => array( |
89 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 133 ), |
| 89 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 134 ), |
90 | 90 | ), |
91 | 91 | ), |
92 | 92 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.autoEllipse.js |
— | — | @@ -1,65 +0,0 @@ |
2 | | -/** |
3 | | - * Plugin that automatically truncates the plain text contents of an element and adds an ellipsis |
4 | | - */ |
5 | | -( function( $ ) { |
6 | | - |
7 | | -$.fn.autoEllipse = function( options ) { |
8 | | - $(this).each( function() { |
9 | | - options = $.extend( { |
10 | | - 'position': 'center', |
11 | | - 'tooltip': false |
12 | | - }, options ); |
13 | | - var text = $(this).text(); |
14 | | - var $text = $( '<span />' ).text( text ).css( 'whiteSpace', 'nowrap' ); |
15 | | - $(this).empty().append( $text ); |
16 | | - if ( $text.width() > $(this).width() ) { |
17 | | - switch ( options.position ) { |
18 | | - case 'right': |
19 | | - // Use binary search-like technique for efficiency |
20 | | - var l = 0, r = text.length; |
21 | | - do { |
22 | | - var m = Math.ceil( ( l + r ) / 2 ); |
23 | | - $text.text( text.substr( 0, m ) + '...' ); |
24 | | - if ( $text.width() > $(this).width() ) { |
25 | | - // Text is too long |
26 | | - r = m - 1; |
27 | | - } else { |
28 | | - l = m; |
29 | | - } |
30 | | - } while ( l < r ); |
31 | | - $text.text( text.substr( 0, l ) + '...' ); |
32 | | - break; |
33 | | - case 'center': |
34 | | - // TODO: Use binary search like for 'right' |
35 | | - var i = [Math.round( text.length / 2 ), Math.round( text.length / 2 )]; |
36 | | - var side = 1; // Begin with making the end shorter |
37 | | - while ( $text.outerWidth() > ( $(this).width() ) && i[0] > 0 ) { |
38 | | - $text.text( text.substr( 0, i[0] ) + '...' + text.substr( i[1] ) ); |
39 | | - // Alternate between trimming the end and begining |
40 | | - if ( side == 0 ) { |
41 | | - // Make the begining shorter |
42 | | - i[0]--; |
43 | | - side = 1; |
44 | | - } else { |
45 | | - // Make the end shorter |
46 | | - i[1]++; |
47 | | - side = 0; |
48 | | - } |
49 | | - } |
50 | | - break; |
51 | | - case 'left': |
52 | | - // TODO: Use binary search like for 'right' |
53 | | - var r = 0; |
54 | | - while ( $text.outerWidth() > $(this).width() && r < text.length ) { |
55 | | - $text.text( '...' + text.substr( r ) ); |
56 | | - r++; |
57 | | - } |
58 | | - break; |
59 | | - } |
60 | | - if ( options.tooltip ) |
61 | | - $text.attr( 'title', text ); |
62 | | - } |
63 | | - } ); |
64 | | -}; |
65 | | - |
66 | | -} )( jQuery ); |
\ No newline at end of file |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -409,7 +409,7 @@ |
410 | 410 | buildResizeControls(); |
411 | 411 | buildCollapseControls(); |
412 | 412 | } |
413 | | - context.modules.toc.$toc.find( 'div' ).autoEllipse( { 'position': 'right', 'tooltip': true } ); |
| 413 | + context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true } ); |
414 | 414 | } |
415 | 415 | } |
416 | 416 | |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.suggestions.js |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | if ( typeof context.config.result.render == 'function' ) { |
143 | 143 | context.config.result.render.call( $result, context.config.suggestions[i] ); |
144 | 144 | } else { |
145 | | - $result.text( context.config.suggestions[i] ).autoEllipse(); |
| 145 | + $result.text( context.config.suggestions[i] ).autoEllipsis(); |
146 | 146 | } |
147 | 147 | } |
148 | 148 | } |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.autoEllipsis.js |
— | — | @@ -0,0 +1,65 @@ |
| 2 | +/** |
| 3 | + * Plugin that automatically truncates the plain text contents of an element and adds an ellipsis |
| 4 | + */ |
| 5 | +( function( $ ) { |
| 6 | + |
| 7 | +$.fn.autoEllipsis = function( options ) { |
| 8 | + $(this).each( function() { |
| 9 | + options = $.extend( { |
| 10 | + 'position': 'center', |
| 11 | + 'tooltip': false |
| 12 | + }, options ); |
| 13 | + var text = $(this).text(); |
| 14 | + var $text = $( '<span />' ).text( text ).css( 'whiteSpace', 'nowrap' ); |
| 15 | + $(this).empty().append( $text ); |
| 16 | + if ( $text.width() > $(this).width() ) { |
| 17 | + switch ( options.position ) { |
| 18 | + case 'right': |
| 19 | + // Use binary search-like technique for efficiency |
| 20 | + var l = 0, r = text.length; |
| 21 | + do { |
| 22 | + var m = Math.ceil( ( l + r ) / 2 ); |
| 23 | + $text.text( text.substr( 0, m ) + '...' ); |
| 24 | + if ( $text.width() > $(this).width() ) { |
| 25 | + // Text is too long |
| 26 | + r = m - 1; |
| 27 | + } else { |
| 28 | + l = m; |
| 29 | + } |
| 30 | + } while ( l < r ); |
| 31 | + $text.text( text.substr( 0, l ) + '...' ); |
| 32 | + break; |
| 33 | + case 'center': |
| 34 | + // TODO: Use binary search like for 'right' |
| 35 | + var i = [Math.round( text.length / 2 ), Math.round( text.length / 2 )]; |
| 36 | + var side = 1; // Begin with making the end shorter |
| 37 | + while ( $text.outerWidth() > ( $(this).width() ) && i[0] > 0 ) { |
| 38 | + $text.text( text.substr( 0, i[0] ) + '...' + text.substr( i[1] ) ); |
| 39 | + // Alternate between trimming the end and begining |
| 40 | + if ( side == 0 ) { |
| 41 | + // Make the begining shorter |
| 42 | + i[0]--; |
| 43 | + side = 1; |
| 44 | + } else { |
| 45 | + // Make the end shorter |
| 46 | + i[1]++; |
| 47 | + side = 0; |
| 48 | + } |
| 49 | + } |
| 50 | + break; |
| 51 | + case 'left': |
| 52 | + // TODO: Use binary search like for 'right' |
| 53 | + var r = 0; |
| 54 | + while ( $text.outerWidth() > $(this).width() && r < text.length ) { |
| 55 | + $text.text( '...' + text.substr( r ) ); |
| 56 | + r++; |
| 57 | + } |
| 58 | + break; |
| 59 | + } |
| 60 | + if ( options.tooltip ) |
| 61 | + $text.attr( 'title', text ); |
| 62 | + } |
| 63 | + } ); |
| 64 | +}; |
| 65 | + |
| 66 | +} )( jQuery ); |
\ No newline at end of file |
Property changes on: trunk/extensions/UsabilityInitiative/js/plugins/jquery.autoEllipsis.js |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 67 | + native |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | */ |
83 | 83 | ( function( $ ) { |
84 | 84 | |
85 | | -$.fn.autoEllipse = function( options ) { |
| 85 | +$.fn.autoEllipsis = function( options ) { |
86 | 86 | $(this).each( function() { |
87 | 87 | options = $.extend( { |
88 | 88 | 'position': 'center', |
— | — | @@ -651,7 +651,7 @@ |
652 | 652 | if ( typeof context.config.result.render == 'function' ) { |
653 | 653 | context.config.result.render.call( $result, context.config.suggestions[i] ); |
654 | 654 | } else { |
655 | | - $result.text( context.config.suggestions[i] ).autoEllipse(); |
| 655 | + $result.text( context.config.suggestions[i] ).autoEllipsis(); |
656 | 656 | } |
657 | 657 | } |
658 | 658 | } |
— | — | @@ -3627,7 +3627,7 @@ |
3628 | 3628 | buildResizeControls(); |
3629 | 3629 | buildCollapseControls(); |
3630 | 3630 | } |
3631 | | - context.modules.toc.$toc.find( 'div' ).autoEllipse( { 'position': 'right', 'tooltip': true } ); |
| 3631 | + context.modules.toc.$toc.find( 'div' ).autoEllipsis( { 'position': 'right', 'tooltip': true } ); |
3632 | 3632 | } |
3633 | 3633 | } |
3634 | 3634 | |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | {var i=0,l=array.length,loop=opts.loop||function(){};$.whileAsync($.extend(opts,{test:function(){return i<l;},loop:function() |
13 | 13 | {var val=array[i];return loop.call(val,i++,val);}}));} |
14 | 14 | $.fn.eachAsync=function(opts) |
15 | | -{$.eachAsync(this,opts);return this;}})(jQuery);(function($){$.fn.autoEllipse=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;}} |
| 15 | +{$.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;}} |
16 | 16 | break;case'left':var r=0;while($text.outerWidth()>$(this).width()&&r<text.length){$text.text('...'+text.substr(r));r++;} |
17 | 17 | break;} |
18 | 18 | if(options.tooltip) |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | if(typeof context.config.cancel=='function'){context.config.cancel.call(context.data.$textbox);}},restore:function(context){context.data.$textbox.val(context.data.prevText);},update:function(context,delayed){function maybeFetch(){if(context.data.$textbox.val()!==context.data.prevText){context.data.prevText=context.data.$textbox.val();if(typeof context.config.fetch=='function'){context.config.fetch.call(context.data.$textbox,context.data.$textbox.val());}}} |
36 | 36 | if(context.data.timerID!=null){clearTimeout(context.data.timerID);} |
37 | 37 | if(delayed){context.data.timerID=setTimeout(maybeFetch,context.config.delay);}else{maybeFetch();} |
38 | | -$.suggestions.special(context);},special:function(context){if(typeof context.config.special.render=='function'){setTimeout(function(){$special=context.data.$container.find('.suggestions-special');context.config.special.render.call($special,context.data.$textbox.val());},1);}},configure:function(context,property,value){switch(property){case'fetch':case'cancel':case'special':case'result':case'$region':context.config[property]=value;break;case'suggestions':context.config[property]=value;if(typeof context.data!=='undefined'){if(typeof context.config.suggestions=='undefined'||context.config.suggestions.length==0){context.data.$container.hide();}else{context.data.$container.show();context.data.$container.css({'top':context.config.$region.offset().top+context.config.$region.outerHeight(),'bottom':'auto','width':context.config.$region.outerWidth(),'height':'auto','left':context.config.$region.offset().left,'right':'auto'});var $results=context.data.$container.children('.suggestions-results');$results.empty();for(var i=0;i<context.config.suggestions.length;i++){$result=$('<div />').addClass('suggestions-result').attr('rel',i).data('text',context.config.suggestions[i]).appendTo($results);if(typeof context.config.result.render=='function'){context.config.result.render.call($result,context.config.suggestions[i]);}else{$result.text(context.config.suggestions[i]).autoEllipse();}}}} |
| 38 | +$.suggestions.special(context);},special:function(context){if(typeof context.config.special.render=='function'){setTimeout(function(){$special=context.data.$container.find('.suggestions-special');context.config.special.render.call($special,context.data.$textbox.val());},1);}},configure:function(context,property,value){switch(property){case'fetch':case'cancel':case'special':case'result':case'$region':context.config[property]=value;break;case'suggestions':context.config[property]=value;if(typeof context.data!=='undefined'){if(typeof context.config.suggestions=='undefined'||context.config.suggestions.length==0){context.data.$container.hide();}else{context.data.$container.show();context.data.$container.css({'top':context.config.$region.offset().top+context.config.$region.outerHeight(),'bottom':'auto','width':context.config.$region.outerWidth(),'height':'auto','left':context.config.$region.offset().left,'right':'auto'});var $results=context.data.$container.children('.suggestions-results');$results.empty();for(var i=0;i<context.config.suggestions.length;i++){$result=$('<div />').addClass('suggestions-result').attr('rel',i).data('text',context.config.suggestions[i]).appendTo($results);if(typeof context.config.result.render=='function'){context.config.result.render.call($result,context.config.suggestions[i]);}else{$result.text(context.config.suggestions[i]).autoEllipsis();}}}} |
39 | 39 | break;case'maxRows':context.config[property]=Math.max(1,Math.min(100,value));break;case'delay':context.config[property]=Math.max(0,Math.min(1200,value));break;case'submitOnClick':context.config[property]=value?true:false;break;}},highlight:function(context,result,updateTextbox){var selected=context.data.$container.find('.suggestions-result-current');if(!result.get||selected.get(0)!=result.get(0)){if(result=='prev'){result=selected.prev();}else if(result=='next'){if(selected.size()==0) |
40 | 40 | result=context.data.$container.find('.suggestions-results div:first');else{result=selected.next();if(result.size()==0) |
41 | 41 | result=selected;}} |
— | — | @@ -227,7 +227,7 @@ |
228 | 228 | outline[i].nLevel=nLevel;lastLevel=outline[i].level;} |
229 | 229 | var structure=buildStructure(outline);if($('input[name=wpSection]').val()==''){structure.unshift({'text':wgPageName.replace(/_/g,' '),'level':1,'index':0});} |
230 | 230 | context.modules.toc.$toc.html(buildList(structure));if(wgNavigableTOCResizable&&!context.$ui.data('resizableDone')){buildResizeControls();buildCollapseControls();} |
231 | | -context.modules.toc.$toc.find('div').autoEllipse({'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;} |
| 231 | +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;} |
232 | 232 | $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');}} |
233 | 233 | break;case'groups':if(!('section'in data)){continue;} |
234 | 234 | 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]));} |
Index: trunk/extensions/UsabilityInitiative/Makefile |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | |
15 | 15 | PLUGINS := \ |
16 | 16 | js/plugins/jquery.async.js\ |
17 | | - js/plugins/jquery.autoEllipse.js\ |
| 17 | + js/plugins/jquery.autoEllipsis.js\ |
18 | 18 | js/plugins/jquery.browser.js\ |
19 | 19 | js/plugins/jquery.collapsibleTabs.js\ |
20 | 20 | js/plugins/jquery.cookie.js\ |