From 79f557f7b4bb209876977bba99f8c0a18f672b29 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 9 Jul 2017 10:31:31 +1200 Subject: Adjustments to the toast style --- web/app/Application.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'web/app/Application.js') diff --git a/web/app/Application.js b/web/app/Application.js index 0d41fc8..c0a6945 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -185,5 +185,14 @@ Ext.define('Traccar.Application', { } else { Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection); } + }, + + showToast: function (message, title) { + Ext.toast({ + html: message, + title: title, + width: Traccar.Style.toastWidth, + align: 'br' + }); } }); -- cgit v1.2.3