mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Enhance toast to grilled cheese toast!
This commit is contained in:
parent
9ee2e9bdbd
commit
e5928731ec
@ -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"]`);
|
||||
|
Loading…
Reference in New Issue
Block a user