From: Sven Schöling Date: Fri, 14 May 2021 16:08:35 +0000 (+0200) Subject: MaterialComponents: flash X-Git-Tag: kivitendo-mebil_0.1-0~9^2~72 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=20bd8fb437700852157604ce47cab8ba795241ad;p=kivitendo-erp.git MaterialComponents: flash --- diff --git a/js/kivi.Materialize.js b/js/kivi.Materialize.js index 006f8acb2..3262ffab1 100644 --- a/js/kivi.Materialize.js +++ b/js/kivi.Materialize.js @@ -66,6 +66,10 @@ namespace("kivi.Materialize", function(ns) { }; }; + ns.flash = function(text) { + M.toast({html: text}); + }; + ns.reinit_widgets = function() { $('.sidenav').sidenav(); $('select').formSelect();