update add ordr
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<span class="main_menu" id="main_menu menu_name" >
|
<span class="main_menu" id="main_menu menu_name" >
|
||||||
<%if @menu.present? %>
|
<%if @menu.present? %>
|
||||||
<%=menu[0].name%>
|
<%=@menus[0].name%>
|
||||||
<% end%>
|
<% end%>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -222,9 +222,9 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$(".qs_view").on('click', function() {
|
$(".qs_view").on('click', function() {
|
||||||
if ($('#server_mode').val() != "cloud") {
|
if ($('#server_mode').val() != "cloud") {
|
||||||
document.getElementById('second_view').click();
|
document.getElementById('second_view').click();
|
||||||
}
|
}
|
||||||
window.location.href = '/origami/quick_service';
|
window.location.href = '/origami/quick_service';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1010,7 +1010,13 @@
|
|||||||
|
|
||||||
$('#add_order').on('click', function () {
|
$('#add_order').on('click', function () {
|
||||||
var dining_id = "<%= @dining.id %>";
|
var dining_id = "<%= @dining.id %>";
|
||||||
|
var menus = JSON.parse(localStorage.getItem("menus"));
|
||||||
|
// if (menus != null) {
|
||||||
|
// console.log("menu");
|
||||||
|
// menu_cache_append(menus);
|
||||||
|
// }else{
|
||||||
|
// $("#menu_data").removeClass("hidden");
|
||||||
|
// }
|
||||||
window.location.href = '/origami/addorders/' + dining_id;
|
window.location.href = '/origami/addorders/' + dining_id;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -55,5 +55,5 @@ Rails.application.configure do
|
|||||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
|
|
||||||
# Set Cable URL
|
# Set Cable URL
|
||||||
config.action_cable.url = "ws://192.168.1.196:3002/cable"
|
# config.action_cable.url = "ws://192.168.1.196:3002/cable"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user