From c916f33a83092de64048dec54bcaae50085d38a2 Mon Sep 17 00:00:00 2001 From: Alexander Demenshin Date: Fri, 11 Nov 2016 18:46:44 +0100 Subject: [PATCH] More js for modal password request --- js/privatebin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index bffcd3b..f491e10 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -696,7 +696,7 @@ $(function() { { if (password.length === 0) { - password = this.requestPassword(); + return this.requestPassword(); } attachment = filter.decipher(key, password, paste.attachment); } @@ -731,7 +731,7 @@ $(function() { var cleartext = filter.decipher(key, password, paste.data); if (cleartext.length === 0 && password.length === 0 && !paste.attachment) { - password = this.requestPassword(); + return this.requestPassword(); cleartext = filter.decipher(key, password, paste.data); } if (cleartext.length === 0 && !paste.attachment)