diff app/view/grid/MessprogrammeList.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/MessprogrammeList.js	Wed Dec 02 17:53:20 2015 +0100
+++ b/app/view/grid/MessprogrammeList.js	Thu Dec 03 09:26:43 2015 +0100
@@ -35,7 +35,8 @@
             }, {
                 text: i18n.getMsg('messprogramme.button.generate'),
                 icon: 'resources/img/view-time-schedule-insert.png',
-                action: 'genProbenFromMessprogramm'
+                action: 'genProbenFromMessprogramm',
+                disabled: true // disabled on startup, will be enabled by controller if necessary
             }]
         }];
         this.columns = [];

http://lada.wald.intevation.org