1
0
Fork 0
forked from wezm/wezm.net

Remove console.log from JS

This commit is contained in:
Wesley Moore 2010-07-10 15:29:20 +10:00
parent fb07aa2e85
commit d667f51599

View file

@ -5,7 +5,6 @@ jQuery(function() {
/*** Article Search ***/ /*** Article Search ***/
function reset_search() { function reset_search() {
console.log("restoring items");
$('#articles li').css({height: 'auto', opacity: 1.0}); $('#articles li').css({height: 'auto', opacity: 1.0});
} }
@ -31,14 +30,11 @@ jQuery(function() {
if(input.length > 0) { if(input.length > 0) {
// Setup incremental search on Articles pages // Setup incremental search on Articles pages
if('onsearch' in input.get(0)) { if('onsearch' in input.get(0)) {
console.log("Using search event for search");
$('#search label').hide(); $('#search label').hide();
input.bind("search", function() { refresh_search(this) }); input.bind("search", function() { refresh_search(this) });
} }
else { else {
// Poll the field for its value while it has focus // Poll the field for its value while it has focus
console.log("Using poll mode for search");
var last_value; var last_value;
input.focus(function() { input.focus(function() {
last_value = input.val(); last_value = input.val();