[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 Marcin Cieślak marcin.cies...@gmail.com changed: What|Removed |Added CC||marcin.cies...@gmail.com See Also||https://bugzilla.wikimedia. ||org/show_bug.cgi?id=24214 -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 --- Comment #4 from Niklas Laxström niklas.laxst...@gmail.com --- I had to duplicate 'computeResultRenderCache' which is less than ideal. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 Bartosz Dziewoński matma@gmail.com changed: What|Removed |Added Status|NEW |UNCONFIRMED Ever confirmed|1 |0 -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 Andre Klapper aklap...@wikimedia.org changed: What|Removed |Added Priority|Unprioritized |Normal Severity|normal |enhancement -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 --- Comment #3 from Niklas Laxström niklas.laxst...@gmail.com --- Hmm okay. I will try the RL approach by duplicating searchboxesSelectors and overriding 'fetch' and 'result' by calling .suggestions() in $( document ).ready(). If that works this can be closed as WFM. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 --- Comment #1 from MZMcBride b...@mzmcbride.com --- (In reply to Niklas Laxström from comment #0) I can't find any non-ugly way to alter the default search box suggestion functionality. I would like to change the namespaces and change rendering format a bit. Which file were you looking at specifically? -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 65753] Provide way to override the behavior of default search box
https://bugzilla.wikimedia.org/show_bug.cgi?id=65753 Bartosz Dziewoński matma@gmail.com changed: What|Removed |Added CC||matma@gmail.com --- Comment #2 from Bartosz Dziewoński matma@gmail.com --- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l