diff app/controller/Sql.js @ 386:00bf2d4f3bd1

Added about dialog.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 30 Aug 2013 11:11:00 +0200
parents d001e88affde
children e3e4adb00f32
line wrap: on
line diff
--- a/app/controller/Sql.js	Fri Aug 30 10:29:39 2013 +0200
+++ b/app/controller/Sql.js	Fri Aug 30 11:11:00 2013 +0200
@@ -9,12 +9,14 @@
     stores: [
         'Proben',    // List of found Proben
         'ProbenList',    // List of found Proben
-        'Queries'
+        'Queries',
+        'Info',
     ],
     requires: [
         'Lada.view.widgets.Mst',
         'Lada.view.widgets.Uwb',
-        'Lada.view.widgets.Datetime'
+        'Lada.view.widgets.Datetime',
+        'Lada.view.About'
     ],
     init: function() {
         console.log('Initialising the Sql controller');
@@ -34,6 +36,10 @@
             '#ResetBtn': {
                 // Map click event on Button.
                 click: this.reset
+            },
+            '#AboutBtn': {
+                // Map click event on Button.
+                click: this.about
             }
         });
     },
@@ -162,5 +168,9 @@
         //}
         //result.hide();
         //buttons.hide();
+    },
+    about: function(element, record, index) {
+        var info = this.getInfoStore();
+        var view = Ext.widget('about', {info: info});
     }
 });

http://lada.wald.intevation.org