changeset 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 9ac03f461ab4
children 04ac7bb4494f 9651def05ae6
files app/view/widget/DynamicGrid.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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