diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-25 17:27:25 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 17:27:25 +1300 |
commit | d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5 (patch) | |
tree | 40ac870d42f129cd38bd43410cc7080cfdc3711c /web/app/controller/Root.js | |
parent | 49eebb3a0d11e3c4d6f6951312e44bf65ce02906 (diff) | |
parent | d1a21515aec2d8b6c0ecbc4ca10c54f594e4820e (diff) | |
download | trackermap-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.tar.gz trackermap-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.tar.bz2 trackermap-web-d68f47ef27eb6afc28444f2e7e0a8310ae4f25b5.zip |
Merge pull request #447 from Abyss777/save_state
Use cookies to save buttons state instead of User/Server attributes
Diffstat (limited to 'web/app/controller/Root.js')
-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'); |