https://bugzilla.wikimedia.org/show_bug.cgi?id=65753

Bartosz Dziewoński <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Bartosz Dziewoński <[email protected]> ---
If you're a skin, you can override the 'mediawiki.searchSuggest' module, which
is normally loaded, by overriding the Skin::getDefaultModules() method.

If you're a ResourceLoader module, you can just depend on 'jquery.suggestions'
*and* 'mediawiki.searchSuggest', and then call .suggestions() to override the
rendering and selecting behavior (as well as a couple other things, see
jquery.suggestions documentation) using code like below (every object key is
optional in this call, and missing ones will keep their previous behavior).
'mediawiki.searchSuggest' actually does just that itself, calling
.suggestions() several times.

$( '#searchInput' ).suggestions( {
    result: {
        render: ...,
        select: ...
    },
    special: {
        render: ...,
        select: ...
    }
} );

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to