fixed search and buy functionality failing on items that are not drinks
This commit is contained in:
parent
8c05fb6b0f
commit
61c344f936
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue