From 372fb58d203025677ade16d1ae4e9d9fc66c1b92 Mon Sep 17 00:00:00 2001 From: 9401adarsh Date: Wed, 29 May 2024 16:20:28 +0530 Subject: [PATCH 1/2] fix: password input not resetting bug, add resetPasswordInput() method --- js/privatebin.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/privatebin.js b/js/privatebin.js index 33a4494e..53b9b8bc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3767,6 +3767,18 @@ jQuery.PrivateBin = (function($, RawDeflate) { } } + /** + * Clear the password input in the top navigation + * + * @name TopNav.clearPasswordInput + * @function + */ + + function clearPasswordInput() + { + $passwordInput.val(''); + } + /** * Clear the attachment input in the top navigation. @@ -4349,6 +4361,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { me.resetInput = function() { clearAttachmentInput(); + clearPasswordInput(); $burnAfterReading.prop('checked', burnAfterReadingDefault); $openDiscussion.prop('checked', openDiscussionDefault); if (openDiscussionDefault || !burnAfterReadingDefault) $openDiscussionOption.removeClass('buttondisabled'); From 750a0adce4f5dd7a827c9e6fc74a3a5028e5b87f Mon Sep 17 00:00:00 2001 From: 9401adarsh Date: Wed, 29 May 2024 16:21:08 +0530 Subject: [PATCH 2/2] chore: update sri hashes to reflect changes in js/ --- tpl/bootstrap.php | 2 +- tpl/bootstrap5.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index c8df9e2c..5f6b24f0 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -73,7 +73,7 @@ endif; ?> - + diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index 951a518b..a76409cc 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -57,7 +57,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index f5b4f6fb..81bee299 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -51,7 +51,7 @@ endif; ?> - +