[Lada-commits] [PATCH 4 of 4] Fixed edit status in grids

Wald Commits scm-commit at wald.intevation.org
Thu Jan 21 08:59:17 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1453363153 -3600
# Node ID 94a6b5415d73f7b3e9537b874a0ee7611ce34b93
# Parent  afb355cc7fb353687bc1abc75ba064248cac1320
Fixed edit status in grids.

diff -r afb355cc7fb3 -r 94a6b5415d73 app/view/widget/DynamicGrid.js
--- a/app/view/widget/DynamicGrid.js	Thu Jan 21 08:58:35 2016 +0100
+++ b/app/view/widget/DynamicGrid.js	Thu Jan 21 08:59:13 2016 +0100
@@ -86,7 +86,7 @@
             tooltip: 'Probe öffnen',
             width: 30,
             getClass: function (val, meta, rec) {
-                if ( rec.get('readonly') === false || rec.get('owner') ) {
+                if ( rec.get('readonly') === false && rec.get('owner') === true) {
                         return 'edit';
                 }
                 else {


More information about the Lada-commits mailing list