aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:31:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-07-09 10:31:31 +1200
commit79f557f7b4bb209876977bba99f8c0a18f672b29 (patch)
tree67aab13a8b33631366a149d0718dec0531060a63 /web/app/controller
parent2b15689bd7353f7bb388950408ddaabaeb0c0b53 (diff)
downloadtrackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.tar.gz
trackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.tar.bz2
trackermap-web-79f557f7b4bb209876977bba99f8c0a18f672b29.zip
Adjustments to the toast stylev3.13
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js4
1 files changed, 2 insertions, 2 deletions
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'));
}
}
},