aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/CommandDialogController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-07 15:32:22 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-07 15:39:21 +0500
commit7db1c1cdcf617e146e927c4aadde239959a9d3de (patch)
tree6caf2497b4d217557e8f00887ec6442e2bfd0c73 /web/app/view/CommandDialogController.js
parent50a2616002602c379f408d5ecc404a59d317b0ca (diff)
downloadtrackermap-web-7db1c1cdcf617e146e927c4aadde239959a9d3de.tar.gz
trackermap-web-7db1c1cdcf617e146e927c4aadde239959a9d3de.tar.bz2
trackermap-web-7db1c1cdcf617e146e927c4aadde239959a9d3de.zip
Implement SMS commands
Diffstat (limited to 'web/app/view/CommandDialogController.js')
-rw-r--r--web/app/view/CommandDialogController.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js
index 6e809fa1..c2859d0a 100644
--- a/web/app/view/CommandDialogController.js
+++ b/web/app/view/CommandDialogController.js
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2017 Anton Tananaev (anton@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -113,9 +113,18 @@ Ext.define('Traccar.view.CommandDialogController', {
});
},
+ onTextChannelChange: function (checkbox, newValue) {
+ var typesStore = this.lookupReference('commandType').getStore();
+ typesStore.getProxy().setExtraParam('textChannel', newValue);
+ typesStore.reload();
+ },
+
onSendResult: function (options, success, response) {
if (success) {
- Ext.toast(Strings.commandSent);
+ Ext.toast({
+ html: Strings.commandSent,
+ align: 'br'
+ });
this.closeView();
} else {
Traccar.app.showError(response);