overlays: Remove all alert notifications from in open_modal func.

We should not display any alert previous notification on
open_modal() functions.
This commit is contained in:
Yashashvi Dave
2019-07-16 23:19:03 +05:30
committed by Tim Abbott
parent 5506b16fa8
commit 916a84ce20

View File

@@ -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) {