add clickable check
This commit is contained in:
@@ -869,6 +869,10 @@
|
||||
|
||||
// Bill Request
|
||||
$('#request_bills').click(function () {
|
||||
if($('#request_bills').is(":visible")) {
|
||||
$('#request_bills').prop("disabled",true);
|
||||
}
|
||||
|
||||
var order_id = $('#save_order_id').attr('data-order');
|
||||
var ajax_url = "/origami/" + order_id + "/request_bills";
|
||||
$.ajax({
|
||||
@@ -893,8 +897,11 @@
|
||||
});
|
||||
|
||||
$('#move').on('click', function () {
|
||||
var dining_id = "<%= @dining.id %>";
|
||||
window.location.href = '/origami/table/' + dining_id + "/movetable";
|
||||
if($('#move').is(":visible")) {
|
||||
$('#move').prop("disabled",true);
|
||||
}
|
||||
var dining_id = "<%= @dining.id %>";
|
||||
window.location.href = '/origami/table/' + dining_id + "/movetable";
|
||||
})
|
||||
|
||||
$('#back').on('click', function () {
|
||||
|
||||
@@ -1050,6 +1050,10 @@ var pdf_view = '<%=@pdf_view%>';
|
||||
});
|
||||
|
||||
function print_receipt() {
|
||||
if($('.print_receipt').is(":visible")) {
|
||||
$('.print_receipt').prop("disabled",true);
|
||||
}
|
||||
|
||||
var sale_id = $('#sale_id').text();
|
||||
var filename = $("#filename").val();
|
||||
var printer_name = $("#printer_name").val();
|
||||
|
||||
@@ -870,6 +870,9 @@ $('#pay').on('click',function() {
|
||||
});
|
||||
// Bill Request
|
||||
$('#request_bills').click(function() {
|
||||
if($('#request_bills').is(":visible")) {
|
||||
$('#request_bills').prop("disabled",true);
|
||||
}
|
||||
var order_id = $('#save_order_id').attr('data-order');
|
||||
var ajax_url = "/origami/" + order_id + "/request_bills";
|
||||
$.ajax({
|
||||
@@ -894,6 +897,9 @@ $('#split_bills').click(function(){
|
||||
});
|
||||
|
||||
$('#move').on('click',function(){
|
||||
if($('#move').is(":visible")) {
|
||||
$('#move').prop("disabled",true);
|
||||
}
|
||||
var dining_id = "<%= @room.id %>"
|
||||
window.location.href = '/origami/table/'+ dining_id + "/moveroom";
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user