jquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.searchSuggest.js
index 6999610..8a8871d 100644 (file)
                        resultRenderCache.linkParams[ resultRenderCache.textParam ] = text;
 
                        // this is the container <div>, jQueryfied
-                       this
-                               .append(
-                                       // the <span> is needed for $.autoEllipsis to work
-                                       $( '<span>' )
-                                               .css( 'whiteSpace', 'nowrap' )
-                                               .text( text )
-                               )
+                       this.text( text )
                                .wrap(
                                        $( '<a>' )
                                                .attr( 'href', resultRenderCache.baseHref + $.param( resultRenderCache.linkParams ) )
                                                $( '<div>' )
                                                        .addClass( 'special-query' )
                                                        .text( query )
-                                                       .autoEllipsis()
                                        )
                                        .show();
                        } else {
                                $el.find( '.special-query' )
-                                       .text( query )
-                                       .autoEllipsis();
+                                       .text( query );
                        }
 
                        if ( $el.parent().hasClass( 'mw-searchSuggest-link' ) ) {