diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index b9237887..6f7c772a 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -164,15 +164,20 @@ $(function() { } if (menu_items[field].image) { - image_path = menu_items[field].image; + if (modify_order) { + image_path = "../../"+menu_items[field].image; + }else{ + image_path = menu_items[field].image; + } + }else{ - image_path = "image/logo.png"; + if (modify_order) { + image_path = "../../image/logo.png"; + }else{ + image_path = "image/logo.png"; + } } - // if (menu_item_box == "set_item_box") { - - // }else{ - - // } + row = '
";
+ if (modify_order) {
+ image = "
";
+ }else{
+ image = "
";
+ }
+
}
$('#modal_box_img').append(image);