Hi Matt, hi Krinkle!
Thanks for your replies.
@Matt: Thank you for the hint. I'm now using the hooks "UserGetDefaultOptions", "UserLoadOptions" and "GetPreferences" to set the "disablesuggest" useroption to true and to remove the checkbox in the user preferences. This works for me.
@Krinkle: I've written a custom API module that returns categorized results. I wanted to have a categorized output like in this demo: http://jqueryui.com/autocomplete/#categories My first approach was to override some of the logic in "mediawiki.searchSuggest" on the client side. But this didn't work as I expected. Then I saw that "jquery.ui.autocomplete" was part of MW framework and so I tried to use this according to the demo I mentioned before. But "mediawiki.searchSuggest" always "occupied" the input element so I couldn't apply "jquery.ui.autocomplete" to it. But now with the hint from Matt it works pretty good :)
Are there any future plans to make the removal of already added modules available in ResourceLoader?
- Robert
-----Ursprüngliche Nachricht----- Von: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Krinkle Gesendet: Mittwoch, 16. Januar 2013 18:02 An: Wikimedia developers Betreff: Re: [Wikitech-l] Disable module "mediawiki.searchSuggest" in MW 1.20+
On Jan 15, 2013, at 9:18 AM, Robert Vogel vogel@hallowelt.biz wrote:
Hi everybody!
I'm writing an extension that needs to replace/disable the build-in suggestion feature of the search box.
In case there may be a better approach to solve your problem, what is it you're looking to add to this feature?
Most of this module is pretty trivial and only wraps around other features that have elaborate hooks and toggles (such as PrefixIndex and the API).
-- Krinkle
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l