فهرست منبع

More js for modal password request

Alexander Demenshin 9 سال پیش
والد
کامیت
c916f33a83
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      js/privatebin.js

+ 2 - 2
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)