Skip to content
Snippets Groups Projects
Commit c0feee1d authored by Brett Bieber's avatar Brett Bieber
Browse files

Readability

parent 3e3b815a
No related branches found
No related tags found
No related merge requests found
......@@ -9,14 +9,13 @@ function searchInit() {
var qs = location.search.substring(1,location.search.length);
qs = qs.replace(/\+/g, ' ');
var args = qs.split('&');
UNL_Search.query = "";
for (var i=0;i<args.length;i++) {
var pair = args[i].split('=');
var name = unescape(pair[0]);
if (name == "q") {
if (pair.length == 2) {
UNL_Search.query = unescape(pair[1])
} else {
UNL_Search.query = "";
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment