diff options
author | Abyss777 <abyss@fox5.ru> | 2017-03-25 08:40:40 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-03-25 08:40:40 +0500 |
commit | 97ea2529c8911d389ee1a26cc6ae43ae7dbc54fb (patch) | |
tree | 871b9371a514e2dc5d6798ca9dc13c1b3ba462be /web/app/controller | |
parent | 37c1c6a786e4ca385e373c645654663e38701e7c (diff) | |
download | trackermap-web-97ea2529c8911d389ee1a26cc6ae43ae7dbc54fb.tar.gz trackermap-web-97ea2529c8911d389ee1a26cc6ae43ae7dbc54fb.tar.bz2 trackermap-web-97ea2529c8911d389ee1a26cc6ae43ae7dbc54fb.zip |
Change "Mute" logic
Diffstat (limited to 'web/app/controller')
-rw-r--r-- | web/app/controller/Root.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index e8d4f0ff..673f7fb3 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -114,9 +114,9 @@ Ext.define('Traccar.controller.Root', { this.beepSound.play(); }, - mutePressed: function () { - var muteButton = Ext.getCmp('muteButton'); - return muteButton && !muteButton.pressed; + soundPressed: function () { + var soundButton = Ext.getCmp('soundButton'); + return soundButton && soundButton.pressed; }, removeUrlParameter: function (param) { @@ -231,7 +231,7 @@ Ext.define('Traccar.controller.Root', { } device = Ext.getStore('Devices').getById(array[i].deviceId); if (device) { - if (this.mutePressed()) { + if (this.soundPressed()) { this.beep(); } Ext.toast(text, device.get('name'), 'br'); |