Fixes #28, too much debug info

This commit is contained in:
Kai Hendry
2013-02-09 13:31:31 +08:00
parent 849445f79b
commit ee9cb0b532
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ function grep(query) {
if (typeof applicationCache !== 'undefined' && applicationCache.status == 1) {
// If we have a cache, lets do this locally
console.log("Using applicationCache");
// console.log("Using applicationCache");
if (l.length > 0) {
search(query, l);
} else {
@@ -37,7 +37,7 @@ function grep(query) {
} else {
// Client doesn't support appcache or it's not in sync, so lets search on the server
console.log("Using grep.php");
// console.log("Using grep.php");
$.getJSON("/u/" + NAME + "/grep.php?jsoncallback=?", {
q: query
},
@@ -87,7 +87,7 @@ $(document).ready(function() {
});
$(window).bind('hashchange', function() {
console.log("Hash change: ", window.location.hash);
// console.log("Hash change: ", window.location.hash);
searchquery = window.location.hash.substr(1);
$("input[type=search]").val(searchquery);
grep(searchquery);