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) {
|
focus: function(event, ui) {
|
||||||
selection = ui.item;
|
selection = ui.item;
|
||||||
|
|
||||||
//search_input.val(items[selection.value].fields.name);
|
|
||||||
$("ul.ui-autocomplete").children().removeClass("focus");
|
$("ul.ui-autocomplete").children().removeClass("focus");
|
||||||
$(".pk" + selection.value).parent().parent()
|
$(".pk" + selection.value).parent().parent()
|
||||||
.addClass("focus");
|
.addClass("focus");
|
||||||
|
@ -63,7 +62,7 @@ jQuery(document).ready(function($) {
|
||||||
selected_item.addClass("load");
|
selected_item.addClass("load");
|
||||||
|
|
||||||
$.post("/api2/buyable/item/" + selection.value, {
|
$.post("/api2/buyable/item/" + selection.value, {
|
||||||
"deposit": "1"
|
"POSTDATA": "YUNOCANTBEEMPTY"
|
||||||
}, function(data, status) {
|
}, function(data, status) {
|
||||||
selected_item.removeClass("load");
|
selected_item.removeClass("load");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue