mediawiki.searchSuggest: Show full article title as a tooltip for each suggestion
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 18 Apr 2014 20:13:31 +0000 (22:13 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 18 Apr 2014 20:13:31 +0000 (22:13 +0200)
The text can be truncated, so let's do this to make it always possible
to actually see where the link leads.

Change-Id: I84fbae5a223be89e2d8918cb6fc45d88273fc6f4

resources/src/mediawiki/mediawiki.searchSuggest.js

index 8a8871d..639d51d 100644 (file)
@@ -66,6 +66,7 @@
                                .wrap(
                                        $( '<a>' )
                                                .attr( 'href', resultRenderCache.baseHref + $.param( resultRenderCache.linkParams ) )
+                                               .attr( 'title', text )
                                                .addClass( 'mw-searchSuggest-link' )
                                );
                }