From 916a84ce20bf8eb4c5302f43a0948ee71b4c4b1e Mon Sep 17 00:00:00 2001 From: Yashashvi Dave Date: Tue, 16 Jul 2019 23:19:03 +0530 Subject: [PATCH] overlays: Remove all alert notifications from in open_modal func. We should not display any alert previous notification on open_modal() functions. --- static/js/overlays.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/overlays.js b/static/js/overlays.js index 2734d2a9d9..ab0a319f51 100644 --- a/static/js/overlays.js +++ b/static/js/overlays.js @@ -106,6 +106,7 @@ exports.open_modal = function (name) { $('.overlay.show').attr("style", "pointer-events: none"); // Remove previous alert messsages from modal, if exists. $("#" + name).find(".alert").hide(); + $("#" + name).find(".alert-notification").html(""); }; exports.close_overlay = function (name) {