fixed search and buy functionality failing on items that are not drinks

This commit is contained in:
Konrad Mohrfeldt 2011-10-16 15:10:42 +02:00
parent 8c05fb6b0f
commit 61c344f936
1 changed files with 10 additions and 11 deletions

View File

@ -41,7 +41,6 @@ jQuery(document).ready(function($) {
focus: function(event, ui) {
selection = ui.item;
//search_input.val(items[selection.value].fields.name);
$("ul.ui-autocomplete").children().removeClass("focus");
$(".pk" + selection.value).parent().parent()
.addClass("focus");
@ -63,7 +62,7 @@ jQuery(document).ready(function($) {
selected_item.addClass("load");
$.post("/api2/buyable/item/" + selection.value, {
"deposit": "1"
"POSTDATA": "YUNOCANTBEEMPTY"
}, function(data, status) {
selected_item.removeClass("load");