mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-22 04:51:05 -05:00
Fixes #28, too much debug info
This commit is contained in:
Submodule bootstrap updated: 9376a7c221...8c7f9c66a7
6
main.js
6
main.js
@@ -24,7 +24,7 @@ function grep(query) {
|
|||||||
if (typeof applicationCache !== 'undefined' && applicationCache.status == 1) {
|
if (typeof applicationCache !== 'undefined' && applicationCache.status == 1) {
|
||||||
|
|
||||||
// If we have a cache, lets do this locally
|
// If we have a cache, lets do this locally
|
||||||
console.log("Using applicationCache");
|
// console.log("Using applicationCache");
|
||||||
if (l.length > 0) {
|
if (l.length > 0) {
|
||||||
search(query, l);
|
search(query, l);
|
||||||
} else {
|
} else {
|
||||||
@@ -37,7 +37,7 @@ function grep(query) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Client doesn't support appcache or it's not in sync, so lets search on the server
|
// 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=?", {
|
$.getJSON("/u/" + NAME + "/grep.php?jsoncallback=?", {
|
||||||
q: query
|
q: query
|
||||||
},
|
},
|
||||||
@@ -87,7 +87,7 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(window).bind('hashchange', 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);
|
searchquery = window.location.hash.substr(1);
|
||||||
$("input[type=search]").val(searchquery);
|
$("input[type=search]").val(searchquery);
|
||||||
grep(searchquery);
|
grep(searchquery);
|
||||||
|
|||||||
Reference in New Issue
Block a user