diff --git a/static/js/tipuesearch.js b/static/js/tipuesearch.js
index 68907ca..10ef6ca 100644
--- a/static/js/tipuesearch.js
+++ b/static/js/tipuesearch.js
@@ -97,7 +97,7 @@ http://www.tipue.com/search
}
if (getURLP('q'))
{
- $('.tipue_search')[0].val(getURLP('q'));
+ $('main .tipue_search').val(getURLP('q'));
getTipueSearch(0, true);
}
@@ -120,7 +120,7 @@ http://www.tipue.com/search
var c = 0;
found = new Array();
- var d = $('.tipue_search')[0].val().toLowerCase();
+ var d = $('main .tipue_search').val().toLowerCase();
d = $.trim(d);
if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$")))
diff --git a/templates/base.html b/templates/base.html
index 196c980..58f2247 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,7 +19,7 @@
-