diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index a9bd453a..07af7f41 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -6,8 +6,8 @@ $(function() { //click menu sidebar menu category $(".product").on("click", function(){ - // /var url = $(this).attr('data-ref'); - // /show_product_list(url); + var url = $(this).attr('data-ref'); + show_product_list(url); }); //show menu item list when click menu category function show_product_list(url_item){ @@ -43,7 +43,7 @@ $(function() { options = []; item_attributes = []; - if (product[field].image_path) { + if (product[field].image_path.url) { if (type != -1 && modify_order != -1) { image_path = '../../'+product[field].image_path.url; } @@ -74,7 +74,7 @@ $(function() { +'' +'' - +"