mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	alert_popup: Fix stack trace not removed on clicking x.
				
					
				
			This commit is contained in:
		@@ -2,10 +2,10 @@ import $ from "jquery";
 | 
			
		||||
 | 
			
		||||
// this will hide the alerts that you click "x" on.
 | 
			
		||||
$("body").on("click", ".alert-box .exit", function () {
 | 
			
		||||
    const $alert = $(this).parent("div");
 | 
			
		||||
    $alert.addClass("fade-out");
 | 
			
		||||
    const $stack_trace = $(this).closest(".stacktrace");
 | 
			
		||||
    $stack_trace.addClass("fade-out");
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
        $alert.removeClass("fade-out show");
 | 
			
		||||
        $stack_trace.removeClass("fade-out show");
 | 
			
		||||
    }, 300);
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user