aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-20 22:37:34 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-20 22:37:34 +1200
commitdc76207257da485eeb4887202335c24e46d90263 (patch)
tree2ab4b0384c989a34e6b5d62b194bb3663ecf8cb4 /web/app/view/map/MapController.js
parent412bb3fe1c9fe9301c18c5c849e1432b58647055 (diff)
downloadtrackermap-server-dc76207257da485eeb4887202335c24e46d90263.tar.gz
trackermap-server-dc76207257da485eeb4887202335c24e46d90263.tar.bz2
trackermap-server-dc76207257da485eeb4887202335c24e46d90263.zip
Add report controller events
Diffstat (limited to 'web/app/view/map/MapController.js')
-rw-r--r--web/app/view/map/MapController.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
new file mode 100644
index 000000000..d02d454d6
--- /dev/null
+++ b/web/app/view/map/MapController.js
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+Ext.define('Traccar.view.map.MapController', {
+ extend: 'Ext.app.ViewController',
+ alias: 'controller.map',
+
+ config: {
+ listen: {
+ controller: {
+ '*': {
+ reportShow: 'reportShow',
+ reportClear: 'reportClear'
+ }
+ }
+ }
+ },
+
+ reportShow: function() {
+ console.log('reportShow');
+ },
+
+ reportClear: function() {
+ console.log('reportClear');
+ }
+
+});