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/controller/Root.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/app/controller') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 5d22a74a..e389266e 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -161,7 +161,7 @@ Ext.define('Traccar.controller.Root', { socket = new WebSocket(protocol + '//' + window.location.host + pathname + 'api/socket'); socket.onclose = function (event) { - Ext.toast(Strings.errorSocket, Strings.errorTitle, 'br'); + Traccar.app.showToast(Strings.errorSocket, Strings.errorTitle); Ext.Ajax.request({ url: 'api/devices', @@ -248,7 +248,7 @@ Ext.define('Traccar.controller.Root', { if (this.soundPressed()) { this.beep(); } - Ext.toast(array[i].text, device.get('name'), 'br'); + Traccar.app.showToast(array[i].text, device.get('name')); } } }, -- cgit v1.2.3