Mercurial > lada > lada-client
comparison app/controller/Ort.js @ 1366:993e542796fd
Fixed type error in ortszuordnung when user has 'funktion = 4'
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Feb 2017 15:36:55 +0100 |
parents | 5c2d6812d85a |
children | 75b1b0d7dece |
comparison
equal
deleted
inserted
replaced
1365:e98ec562764f | 1366:993e542796fd |
---|---|
177 buttonToggle: function(rowModel, record) { | 177 buttonToggle: function(rowModel, record) { |
178 if (!Ext.Array.contains(Lada.funktionen, 4)) { | 178 if (!Ext.Array.contains(Lada.funktionen, 4)) { |
179 return; | 179 return; |
180 } | 180 } |
181 var grid = Ext.ComponentQuery.query('ortstammdatengrid')[0]; | 181 var grid = Ext.ComponentQuery.query('ortstammdatengrid')[0]; |
182 if (!grid.up('ortpanel')) { | |
183 return; | |
184 } | |
182 if (!record || | 185 if (!record || |
183 !Ext.Array.contains(Lada.netzbetreiber, | 186 !Ext.Array.contains(Lada.netzbetreiber, |
184 record.get('netzbetreiberId'))) { | 187 record.get('netzbetreiberId'))) { |
185 grid.up('ortpanel').down('button[action=delete]').disable(); | 188 grid.up('ortpanel').down('button[action=delete]').disable(); |
186 return; | 189 return; |