update addorderjs
This commit is contained in:
@@ -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 = '<div class="card custom-card testimonial-card animated fadeInRight" style="height:100%;background-image:url(../../'+image_path+');background-repeat: no-repeat;">'
|
||||
+'<div class="custom-card-head card-head row" style="line-height:14px;margin:0px;" style="">'
|
||||
@@ -457,9 +462,19 @@ $(function() {
|
||||
item_options = $(this).data('option');
|
||||
|
||||
if (data.attr('data-image')) {
|
||||
image = "<img id='' width='200px' src='"+data.attr('data-image')+"'>";
|
||||
if (modify_order) {
|
||||
image = "<img id='' width='200px' src='../../"+data.attr('data-image')+"'>";
|
||||
}else{
|
||||
image = "<img id='' width='200px' src='"+data.attr('data-image')+"'>";
|
||||
}
|
||||
|
||||
}else{
|
||||
image = "<img id='' width='200px' src='/image/logo.png'>";
|
||||
if (modify_order) {
|
||||
image = "<img id='' width='200px' src='../../image/logo.png'>";
|
||||
}else{
|
||||
image = "<img id='' width='200px' src='/image/logo.png'>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$('#modal_box_img').append(image);
|
||||
|
||||
Reference in New Issue
Block a user