mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Alerts are dismissible
This commit is contained in:
		
				
					committed by
					
						
						Bombar Maxime
					
				
			
			
				
	
			
			
			
						parent
						
							f1210d116c
						
					
				
				
					commit
					dac14b13df
				
			@@ -23,7 +23,9 @@ function pretty_money(value) {
 | 
			
		||||
function addMsg(msg, alert_type) {
 | 
			
		||||
    let msgDiv = $("#messages");
 | 
			
		||||
    let html = msgDiv.html();
 | 
			
		||||
    html += "<div class=\"alert alert-" + alert_type + "\">" + msg + "</div>\n";
 | 
			
		||||
    html += "<div class=\"alert alert-" + alert_type + " alert-dismissible\">" +
 | 
			
		||||
        "<button class=\"close\" data-dismiss=\"alert\" href=\"#\"><span aria-hidden=\"true\">×</span></button>"
 | 
			
		||||
        + msg + "</div>\n";
 | 
			
		||||
    msgDiv.html(html);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user