1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Full-text search: Add menu entry for title search

This commit is contained in:
gnosygnu
2017-03-26 21:26:03 -04:00
parent e6ae41d9fd
commit 39830cfa4f
3 changed files with 8 additions and 4 deletions

View File

@@ -30,7 +30,8 @@ public class Xoapi_nav_wiki implements Gfo_invk {
else if (ctx.Match(k, "random")) win.Page__navigate_by_url_bar("Special:Random");
else if (ctx.Match(k, "sandbox")) win.Page__navigate_by_url_bar("Project:Sandbox");
else if (ctx.Match(k, "allpages")) win.Page__navigate_by_url_bar("Special:AllPages?from=!"); // NOTE: for menu, default to ! else empty page
else if (ctx.Match(k, "search")) win.Page__navigate_by_url_bar("Special:XowaSearch");
else if (ctx.Match(k, "search_title")) win.Page__navigate_by_url_bar("Special:Search?fulltext=y");
else if (ctx.Match(k, "search_full")) win.Page__navigate_by_url_bar("Special:XowaSearch");
else return Gfo_invk_.Rv_unhandled;
return this;
}