|
@@ -372,7 +372,9 @@
|
|
|
$(".qrcode").click(function () {
|
|
|
$('#qr-reader').toggle();
|
|
|
|
|
|
- if($("#qr-reader").is(":visible")){
|
|
|
+ if($("#qr-reader").is(":hidden")){
|
|
|
+ alert("QRCode掃描器已關閉");
|
|
|
+ } else {
|
|
|
alert("QRCode掃描器已開啟");
|
|
|
|
|
|
$('html, body').animate({
|
|
@@ -380,8 +382,6 @@ $(".qrcode").click(function () {
|
|
|
}, 0);
|
|
|
|
|
|
qrcode_scanner();
|
|
|
- } else {
|
|
|
- alert("QRCode掃描器已關閉");
|
|
|
}
|
|
|
});
|
|
|
|