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