# HG changeset patch # User Michael Stanko # Date 1490708190 -7200 # Node ID 41b894caacfe93dfdb1bd5a066d3ede916e1cb05 # Parent 3da3772272a5a5d6794365f85268e46c5b1c464c allow to open Messungs grid if messung is readonly but messwert grid will be empty diff -r 3da3772272a5 -r 41b894caacfe app/controller/grid/Messung.js --- a/app/controller/grid/Messung.js Tue Mar 28 15:04:25 2017 +0200 +++ b/app/controller/grid/Messung.js Tue Mar 28 15:36:30 2017 +0200 @@ -42,30 +42,15 @@ // we have a window with a probe record! if (grid.up('window')) { var probe = grid.up('window').record; - /* Only open a new Window when: - statusEdit = True - -or- - the value of status is not 0 - -or- - the owner = True - - the statusWert attribute is not present in the original data. - it is appended, when the value and name of the status were - determined. - */ - if (record.get('statusEdit') - || record.get('statusWert') > 0 - || record.get('owner')) { - var win = Ext.create('Lada.view.window.MessungEdit', { - parentWindow: grid.up('window'), - probe: probe, - record: record, - grid: grid - }); - win.show(); - win.setPosition(window.innerWidth - 30 -win.width); - win.initData(); - } + var win = Ext.create('Lada.view.window.MessungEdit', { + parentWindow: grid.up('window'), + probe: probe, + record: record, + grid: grid + }); + win.show(); + win.setPosition(window.innerWidth - 30 -win.width); + win.initData(); return; } var probeRecord = Ext.create('Lada.model.ProbeList');