From 61c344f936253711bad63ab1086d69988141a0e9 Mon Sep 17 00:00:00 2001 From: Konrad Mohrfeldt Date: Sun, 16 Oct 2011 15:10:42 +0200 Subject: [PATCH] fixed search and buy functionality failing on items that are not drinks --- k4ever/media/js/k4ever.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/k4ever/media/js/k4ever.js b/k4ever/media/js/k4ever.js index 76176dc..3a6aa39 100644 --- a/k4ever/media/js/k4ever.js +++ b/k4ever/media/js/k4ever.js @@ -1,8 +1,8 @@ jQuery(document).ready(function($) { - + if(!$("html").hasClass("loggedIn")) return; - + var search_input = $("div.search input.autocomplete"); var selected_item = []; var selection = false; @@ -15,7 +15,7 @@ jQuery(document).ready(function($) { $.each(data, function(key, item) { items[item.id] = item; - + source.push({ value: item.id, label: "