fixed out of stock

This commit is contained in:
NyanLinHtut
2020-03-20 16:13:13 +06:30
parent 03fe9e43f2
commit dce2441b9a
21 changed files with 339 additions and 216 deletions

View File

@@ -30,8 +30,26 @@
<script>
$(document).ready(function (){
getAllMenu();
});
$('#new_out_of_stock').on('click',function(){
window.location.href = '/settings/out_of_stock/new';
});
function getAllMenu(){
$.ajax({
type: "GET",
url: '/foodcourt/get_all_menu',
data: {},
success:function(result){
if (result != null ) {
var menus = JSON.stringify(result);
localStorage.setItem("menus", menus);
}
}
});
}
</script>