update oqs print disable
This commit is contained in:
@@ -206,6 +206,8 @@ $(document).on('turbolinks:load', function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '.queue_station', function(event){
|
$(document).on('click', '.queue_station', function(event){
|
||||||
|
$('#print_order_item').removeAttr("disabled","");
|
||||||
|
$('#print_order_summary').removeAttr("disabled","");
|
||||||
var orderNo = $(this).attr('data-order-no');
|
var orderNo = $(this).attr('data-order-no');
|
||||||
var orderZone=$(this).children().children().children('.order-zone').text().trim();
|
var orderZone=$(this).children().children().children('.order-zone').text().trim();
|
||||||
var orderZoneType=$(this).children().children().children('.order-zone-type').text().trim();
|
var orderZoneType=$(this).children().children().children('.order-zone-type').text().trim();
|
||||||
@@ -352,6 +354,7 @@ $(document).on('turbolinks:load', function() {
|
|||||||
|
|
||||||
// Print Order Item
|
// Print Order Item
|
||||||
$(document).on('click', '#print_order_item', function(event){
|
$(document).on('click', '#print_order_item', function(event){
|
||||||
|
$(this).attr("disabled","disabled");
|
||||||
var assigned_item_id = $('.selected-item').children('.card-block').children('.assigned-order-item').text();
|
var assigned_item_id = $('.selected-item').children('.card-block').children('.assigned-order-item').text();
|
||||||
var options = $('.selected-item').children('.card-block').find('.item-options').text();
|
var options = $('.selected-item').children('.card-block').find('.item-options').text();
|
||||||
var params = { 'options':options };
|
var params = { 'options':options };
|
||||||
@@ -364,13 +367,17 @@ $(document).on('turbolinks:load', function() {
|
|||||||
if ($("#server_mode").val() == "cloud") {
|
if ($("#server_mode").val() == "cloud") {
|
||||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Print Order Summary
|
// Print Order Summary
|
||||||
// $('#print_order_summary').on('click',function(){
|
// $('#print_order_summary').on('click',function(){
|
||||||
$(document).on('click', '#print_order_summary', function(event){
|
$(document).on('click', '#print_order_summary', function(event){
|
||||||
|
$(this).attr("disabled","disabled");
|
||||||
var orderNo = $('.selected-item').attr('data-order-no');
|
var orderNo = $('.selected-item').attr('data-order-no');
|
||||||
var table_name=$('.selected-item').children().children().children('.order-zone').text().trim();
|
var table_name=$('.selected-item').children().children().children('.order-zone').text().trim();
|
||||||
var assigned_item_id=$('.selected-item').children('.card-block').children('.assigned-order-item').text();
|
var assigned_item_id=$('.selected-item').children('.card-block').children('.assigned-order-item').text();
|
||||||
|
|||||||
Reference in New Issue
Block a user