diff app/view/grid/ProbeList.js @ 977:56470a075e6e stammdatengrids

Added methods to the controllers to disable/enable buttons in the toolbar when rows are (de)selected
author Dustin Demuth <dustin@intevation.de>
date Thu, 03 Dec 2015 09:26:43 +0100
parents fb99332bb48e
children 1df6b6210b42
line wrap: on
line diff
--- a/app/view/grid/ProbeList.js	Wed Dec 02 17:53:20 2015 +0100
+++ b/app/view/grid/ProbeList.js	Thu Dec 03 09:26:43 2015 +0100
@@ -41,11 +41,13 @@
             }, {
                 text: i18n.getMsg('probe.button.export'),
                 icon: 'resources/img/svn-update.png',
-                action: 'export'
+                action: 'export',
+                disabled: true //disabled on start, enabled by the controller
             }, {
                 text: i18n.getMsg('probe.button.print'),
                 icon: 'resources/img/printer.png',
-                action: 'print'
+                action: 'print',
+                disabled: true //disabled on start, enabled by the controller
             }]
         }];
         this.columns = [];

http://lada.wald.intevation.org