fixed out of stock
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user