clickable check
This commit is contained in:
@@ -1045,13 +1045,9 @@ var pdf_view = '<%=@pdf_view%>';
|
||||
|
||||
//print pdf function
|
||||
// $(".print_receipt").on('click',function(){
|
||||
$(document).on('click touchstart', '#print_receipt', function(event){
|
||||
event.preventDefault();
|
||||
event.target.setAttribute("disabled",true);
|
||||
if($('#print_receipt').is(":visible")) {
|
||||
$('#print_receipt').prop("disabled",true);
|
||||
print_receipt();
|
||||
}
|
||||
$("#print_receipt").on('click touchstart', function(event){
|
||||
$(this).off("click touchstart touchend");
|
||||
print_receipt();
|
||||
});
|
||||
|
||||
function print_receipt() {
|
||||
|
||||
Reference in New Issue
Block a user