Browse Source

:bug: Fix error not appearing below comment

rugk 9 năm trước cách đây
mục cha
commit
b0876ea0e0
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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) {
             Uploader.setFailure(function (status, data) {
                 // revert loading status…
                 // revert loading status…
                 Alert.hideLoading();
                 Alert.hideLoading();
-                Alert.setCustomHandler(null);
                 TopNav.showViewButtons();
                 TopNav.showViewButtons();
 
 
                 // show error message
                 // show error message
                 Alert.showError(Uploader.parseUploadError(status, data, 'post comment'));
                 Alert.showError(Uploader.parseUploadError(status, data, 'post comment'));
+
+                // reset error handler
+                Alert.setCustomHandler(null);
             });
             });
 
 
             // fill it with unencrypted params
             // fill it with unencrypted params