changeset 1416:41b894caacfe

allow to open Messungs grid if messung is readonly but messwert grid will be empty
author Michael Stanko <mstanko@bfs.de>
date Tue, 28 Mar 2017 15:36:30 +0200
parents 3da3772272a5
children 6c9b0828d5bc
files app/controller/grid/Messung.js
diffstat 1 files changed, 9 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- 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');

http://lada.wald.intevation.org