| eflyjason added a comment. |
I guess that this gadget will have to override _initMenu function in jquery.wikibase.entityselector.js and replace the null with the open new URL function?
customItems.unshift( new $.ui.ooMenu.CustomItem(
this.options.messages.notfound,
function () {
return self._cache.suggestions && !self._cache.suggestions.length
&& self.element.val().trim() !== '';
},
null,
'ui-entityselector-notfound'
) );But I can't find how to do this with user script. Or is there any other easier method?
TASK DETAIL
EMAIL PREFERENCES
To: eflyjason
Cc: eflyjason, Ladsgroup, Liuxinyu970226, PokestarFan, Lydia_Pintscher, ChristianKl, Sjoerddebruin, daniel, Ricordisamoa, matej_suchanek, Aklapper, Mvolz, Bright1055, Lahi, Gq86, Toppole69, GoranSMilovanovic, Mine0901, Jayprakash12345, QZanden, srishakatux, dachary, Beeyan, Pahadiahimanshu, Manrajsinghgrover, Keer25, MtDu, D3r1ck01, RexxS, Wikidata-bugs, aude, jayvdb, Mbch331, Jay8g
Cc: eflyjason, Ladsgroup, Liuxinyu970226, PokestarFan, Lydia_Pintscher, ChristianKl, Sjoerddebruin, daniel, Ricordisamoa, matej_suchanek, Aklapper, Mvolz, Bright1055, Lahi, Gq86, Toppole69, GoranSMilovanovic, Mine0901, Jayprakash12345, QZanden, srishakatux, dachary, Beeyan, Pahadiahimanshu, Manrajsinghgrover, Keer25, MtDu, D3r1ck01, RexxS, Wikidata-bugs, aude, jayvdb, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
