From b0876ea0e03595af0066e8d29a044a84adf4e289 Mon Sep 17 00:00:00 2001 From: rugk Date: Fri, 17 Feb 2017 21:48:21 +0100 Subject: [PATCH] :bug: Fix error not appearing below comment --- js/privatebin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 8c5a7857..55350af9 100644 --- a/js/privatebin.js +++ b/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