mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Enhance toast to grilled cheese toast!
This commit is contained in:
		@@ -11,12 +11,13 @@ var foreignJobs;
 | 
			
		||||
var foreignJobsSubscribers = [];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function toast(message) {
 | 
			
		||||
function toast(message, color="") {
 | 
			
		||||
  var toast;
 | 
			
		||||
  var toastActionElement;
 | 
			
		||||
 | 
			
		||||
  toast = M.toast({"html": `<span>${message}</span>
 | 
			
		||||
                            <button class="btn-flat toast-action red-text" data-action="close">
 | 
			
		||||
  toast = M.toast({"classes": color,
 | 
			
		||||
                   "html": `<span>${message}</span>
 | 
			
		||||
                            <button class="btn-flat toast-action white-text" data-action="close">
 | 
			
		||||
                              <i class="material-icons">close</i>
 | 
			
		||||
                            </button>`});
 | 
			
		||||
  toastActionElement = toast.el.querySelector(`.toast-action[data-action="close"]`);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user