diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index 34c93405..4057bf5f 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -1,9 +1,8 @@ -$(function(){ +$(function() { //click menu sidebar menu category $(".product").on("click", function(){ var url = $(this).attr('data-ref'); show_product_list(url); - console.log(url) }); //show menu item list when click menu category function show_product_list(url_item){ @@ -635,8 +634,9 @@ $(function(){ // Pay Discount for Payment $("#create_order").on('click', function(e){ + $(this).attr('disabled', 'disabled'); e.preventDefault(); - $("#loading_wrapper").show(); + $("#oqs_loading_wrapper").show(); var table_id = $('#table_id').text(); var booking_id = $('#booking_id').text(); if (!booking_id.length > 0) { @@ -651,34 +651,34 @@ $(function(){ var ajax_url = '../addorders/create'; - var params = {'order_source': "cashier", 'order_type': "dine_in", 'customer_id': "", 'guest_info': "", 'table_id': table_id, 'order_items': order_items }; - $.ajax({ type: "POST", url: ajax_url, data: params, dataType: "json", - success:function(result){ - $("#loading_wrapper").hide(); - swal({ - title: "Information !", - text: 'Order has been successfully created', - confirmButtonColor: "green", - confirmButtonText: "Yes!", - closeOnConfirm: false, - }, function () { - if(table_type == "Table"){ - window.location.href = "/origami/table/" + table_id - } - else { - window.location.href = "/origami/room/" + table_id - } - }); - } + success:function(result){ + // $("#oqs_loading_wrapper").hide(); + // swal({ + // title: "Information !", + // text: 'Order has been successfully created', + // confirmButtonColor: "green", + // confirmButtonText: "Yes!", + // closeOnConfirm: false, + // }, function (isConfirm) { + // if (isConfirm) { + if(table_type == "Table"){ + window.location.href = "/origami/table/" + table_id + } + else { + window.location.href = "/origami/room/" + table_id + } + // } + // }); + } }); }); diff --git a/app/assets/stylesheets/CRM.scss b/app/assets/stylesheets/CRM.scss index 18bdca31..12fc70b5 100755 --- a/app/assets/stylesheets/CRM.scss +++ b/app/assets/stylesheets/CRM.scss @@ -11,6 +11,10 @@ @import "BSBMaterial/themes/all-themes"; @import "reset"; +.sx-margin-0 { + margin: 0 !important; +} + .selected-item { color: #fff !important; background-color: #7a62d3 !important; diff --git a/app/assets/stylesheets/addorder.scss b/app/assets/stylesheets/addorder.scss index 970532f7..8c535855 100755 --- a/app/assets/stylesheets/addorder.scss +++ b/app/assets/stylesheets/addorder.scss @@ -128,8 +128,7 @@ section.content{ /*Loading gif for payment*/ -#loading_wrapper{ - +#oqs_loading_wrapper{ position: fixed; background-color: #C8C8C8 ; height: 100%; @@ -137,9 +136,9 @@ section.content{ left: 0; opacity: 0.6; top: 0; - z-index: 9999999; + z-index: 100; } -#loading{ +#oqs_loading{ position: relative; height: 100%; width: 100%; @@ -147,9 +146,9 @@ section.content{ background-position: center center; background-repeat: no-repeat; opacity: 1; + z-index: 101; filter: alpha(opacity=100); /* ie */ - -moz-opacity: 1; /* mozilla */ - + -moz-opacity: 1; /* mozilla */ } #count ,#set_count{ diff --git a/app/views/crm/dining_queues/index.html.erb b/app/views/crm/dining_queues/index.html.erb index 17c7e7c8..8eb9904e 100755 --- a/app/views/crm/dining_queues/index.html.erb +++ b/app/views/crm/dining_queues/index.html.erb @@ -28,15 +28,26 @@ @bg_color = "normal" end %> -
<%= queue.id %>
<%= queue.status %>
- Queue No : <%= queue.queue_no %> - Seater : <%= queue.seater %>+ Queue No : <%= queue.queue_no %> +
++ Seater : <%= queue.seater %> +
+Name : <%= queue.name %>
+Contact No : <%= queue.contact_no %>
+Remark : <%= queue.remark %>