propagate the argument throught the search box too
svn: r17051 original commit: 71b1164034afe6265cdab53364cddf7222dba5ba
This commit is contained in:
parent
37ad00fc1b
commit
660c17c0d0
|
@ -90,8 +90,12 @@ function DoSearchKey(event, field, ver, top_path) {
|
|||
var val = field.value;
|
||||
if (event && event.keyCode == 13) {
|
||||
var u = GetCookie("PLT_Root."+ver, null);
|
||||
var args = "";
|
||||
if (u == null) u = top_path; // default: go to the top path
|
||||
location = u + "search/index.html" + "?q=" + escape(val);
|
||||
u += "search/index.html";
|
||||
args = SetArgInString(args, "q", val);
|
||||
if (cur_plt_lang) args = SetArgInString(args, "lang", cur_plt_lang);
|
||||
location = u + "?" + args;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user