diff --git a/www/js/otp.js b/www/js/otp.js index 601b997..d547bc0 100644 --- a/www/js/otp.js +++ b/www/js/otp.js @@ -181,8 +181,8 @@ function scanOTPCode() { } function addManualOTP() { - var label = $("#addotppopup #label").val(); - var secret = $("#addotppopup #secret").val().replace(/\s+/g, ''); - app.popup.close("#addotppopup"); + var label = $("#addotp_sheetmodal #label").val(); + var secret = $("#addotp_sheetmodal #secret").val().replace(/\s+/g, ''); + app.sheet.close("#addotp_sheetmodal"); addOTPCode(secret, label, ""); } \ No newline at end of file diff --git a/www/pages/otp.html b/www/pages/otp.html index e4f4b90..00353a9 100644 --- a/www/pages/otp.html +++ b/www/pages/otp.html @@ -14,40 +14,44 @@ -