diff app/view/widget/DynamicGrid.js @ 1005:52b02b0225e8 stammdatengrids

Made changes to the edit button
author Dustin Demuth <dustin@intevation.de>
date Wed, 20 Jan 2016 17:23:39 +0100
parents 7867752a0d58
children 94a6b5415d73 1df6b6210b42
line wrap: on
line diff
--- a/app/view/widget/DynamicGrid.js	Wed Jan 20 12:32:42 2016 +0100
+++ b/app/view/widget/DynamicGrid.js	Wed Jan 20 17:23:39 2016 +0100
@@ -86,7 +86,12 @@
             tooltip: 'Probe öffnen',
             width: 30,
             getClass: function (val, meta, rec) {
-                return rec.get('readonly') === false ? "edit" : "noedit";
+                if ( rec.get('readonly') === false || rec.get('owner') ) {
+                        return 'edit';
+                }
+                else {
+                        return 'noedit';
+                }
             },
             handler: function(grid, rowIndex, colIndex) {
                 var rec = grid.getStore().getAt(rowIndex);

http://lada.wald.intevation.org