change read NFC UI
This commit is contained in:
@@ -1194,11 +1194,26 @@ $(function() {
|
||||
|
||||
|
||||
// Pay Discount for Payment
|
||||
$("#create_pay_order").on('click', function(e){
|
||||
// $("#create_pay_order").on('click', function(e){
|
||||
|
||||
// $(this).prop("disabled", true);
|
||||
// $("#create_order").prop("disabled", true);
|
||||
// $("#read_modal").attr('data-for', 'member');
|
||||
// e.preventDefault();
|
||||
// getCardNo();
|
||||
|
||||
// onScan.attachTo(document, {
|
||||
// onScan: function(sCode) {
|
||||
// setCardNo(sCode)
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
|
||||
$("#read_modal").on('shown.bs.modal', function(e) {
|
||||
$(this).prop("disabled", true);
|
||||
$("#create_pay_order").prop("disabled", true);
|
||||
$("#create_order").prop("disabled", true);
|
||||
$("#sxModal").show();
|
||||
$("#sxModal").attr('data-for', 'member');
|
||||
$("#read_modal").attr('data-for', 'member');
|
||||
e.preventDefault();
|
||||
getCardNo();
|
||||
|
||||
@@ -1209,14 +1224,21 @@ $(function() {
|
||||
});
|
||||
});
|
||||
|
||||
$("#sxModal .btn_cancel").on('click',function(){
|
||||
$("#read_modal #close").on('click',function(){
|
||||
if ($("#order-items-table tr").length > 1){
|
||||
$("#create_pay_order").prop("disabled", false);
|
||||
$("#create_order").prop("disabled", false);
|
||||
}
|
||||
$("#sxModal").hide();
|
||||
$("#read_modal").modal('hide');
|
||||
});
|
||||
|
||||
$('#read_modal').on('hidden.bs.modal', function () {
|
||||
if ($("#order-items-table tr").length > 1) {
|
||||
$("#create_pay_order").prop("disabled", false);
|
||||
$("#create_order").prop("disabled", false);
|
||||
}
|
||||
})
|
||||
|
||||
//click item row for update qty
|
||||
$('.summary-items').on('click', '.item_box', function(){
|
||||
$(this).attr('data-active',true);
|
||||
@@ -1249,6 +1271,11 @@ $(function() {
|
||||
$('#sx_item_set_detailModal').on('click','#close', function(){
|
||||
$("#sx_item_set_detailModal").css({ 'display': "none" });
|
||||
});
|
||||
|
||||
$('#read_modal').on('click','#close', function(){
|
||||
$("#read_modal").css({ 'display': "none" });
|
||||
});
|
||||
|
||||
//click save buttom after change qty
|
||||
$(document).on('click','#save', function(){
|
||||
if ($('#modal-qty').val()>0) {
|
||||
|
||||
Reference in New Issue
Block a user