Explorar o código

:bug: Fix error not appearing below comment

rugk %!s(int64=9) %!d(string=hai) anos
pai
achega
b0876ea0e0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      js/privatebin.js

+ 3 - 1
js/privatebin.js

@@ -3426,11 +3426,13 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
             Uploader.setFailure(function (status, data) {
                 // revert loading status…
                 Alert.hideLoading();
-                Alert.setCustomHandler(null);
                 TopNav.showViewButtons();
 
                 // show error message
                 Alert.showError(Uploader.parseUploadError(status, data, 'post comment'));
+
+                // reset error handler
+                Alert.setCustomHandler(null);
             });
 
             // fill it with unencrypted params