diff app/view/grid/MessprogrammKategorie.js @ 1011:6afdbc8ee920 stammdatengrids

Tidied up code, fixed buttons in Messprogrammkategoriegrid by renaming the alias of the grid
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 Jan 2016 10:54:20 +0100
parents 15d8c64049d1
children e9e974d31924
line wrap: on
line diff
--- a/app/view/grid/MessprogrammKategorie.js	Wed Jan 20 17:38:10 2016 +0100
+++ b/app/view/grid/MessprogrammKategorie.js	Thu Jan 21 10:54:20 2016 +0100
@@ -11,7 +11,7 @@
  */
 Ext.define('Lada.view.grid.MessprogrammKategorie', {
     extend: 'Ext.grid.Panel',
-    alias: 'widget.mkgrid',
+    alias: 'widget.messprogrammkategoriegrid',
 
     // minHeight and deferEmptyText are needed to be able to show the
     // emptyText message.
@@ -99,16 +99,6 @@
             header: i18n.getMsg('letzteAenderung'),
             dataIndex: 'letzteAenderung'
         }];
-        this.listeners = {
-           select: {
-               fn: this.activateRemoveButton,
-               scope: this
-            },
-            deselect: {
-                fn: this.deactivateRemoveButton,
-                scope: this
-            }
-        };
         this.callParent(arguments);
     },
 
@@ -120,6 +110,7 @@
 
         this.removeDocked(Ext.getCmp('ptbar'), true);
         this.reconfigure(store);
+        this.down('button[action=add]').enable();
         this.addDocked([{
             xtype: 'pagingtoolbar',
             id: 'ptbar',

http://lada.wald.intevation.org