check clickable in payment print
This commit is contained in:
@@ -468,7 +468,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="mr-2 m-t-5 btn-lg btn-block bg-red waves-effect print_receipt"> Print
|
||||
<button type="button" class="mr-2 m-t-5 btn-lg btn-block bg-red waves-effect print_receipt" id="print_receipt"> Print
|
||||
</button>
|
||||
<button type="button" class="btn-lg btn-block bg-blue waves-effect btn_pdf_close" data-dismiss="modal">
|
||||
CLOSE
|
||||
@@ -1045,15 +1045,16 @@ var pdf_view = '<%=@pdf_view%>';
|
||||
|
||||
//print pdf function
|
||||
// $(".print_receipt").on('click',function(){
|
||||
$(document).on('touchstart click', '.print_receipt', function(event){
|
||||
print_receipt();
|
||||
$(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();
|
||||
}
|
||||
});
|
||||
|
||||
function print_receipt() {
|
||||
if($('.print_receipt').is(":visible")) {
|
||||
$('.print_receipt').prop("disabled",true);
|
||||
}
|
||||
|
||||
if($('#pay').is(":visible")) {
|
||||
$('#pay').prop("disabled",true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user