changeset 1038:1251094e7500

Added readonly flag to stammdaten model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 19 Feb 2016 13:58:43 +0100
parents 56922c5c21fd
children 77e22ad5cc84
files app/model/DatensatzErzeuger.js app/model/MessprogrammKategorie.js app/model/Probenehmer.js
diffstat 3 files changed, 6 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/app/model/DatensatzErzeuger.js	Thu Feb 18 13:35:54 2016 +0100
+++ b/app/model/DatensatzErzeuger.js	Fri Feb 19 13:58:43 2016 +0100
@@ -31,24 +31,9 @@
             }
             return new Date(v);
         }
-/*
     }, {
-        name: 'treeModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-    }, {
-        name: 'parentModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-*/
+        name: 'readonly',
+        type: 'boolean'
     }],
 
     idProperty: 'id',
--- a/app/model/MessprogrammKategorie.js	Thu Feb 18 13:35:54 2016 +0100
+++ b/app/model/MessprogrammKategorie.js	Fri Feb 19 13:58:43 2016 +0100
@@ -29,24 +29,9 @@
             }
             return new Date(v);
         }
-/*
     }, {
-        name: 'treeModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-    }, {
-        name: 'parentModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-*/
+        name: 'readonly',
+        type: 'boolean'
     }],
 
     idProperty: 'id',
--- a/app/model/Probenehmer.js	Thu Feb 18 13:35:54 2016 +0100
+++ b/app/model/Probenehmer.js	Fri Feb 19 13:58:43 2016 +0100
@@ -47,24 +47,9 @@
             }
             return new Date(v);
         }
-/*
     }, {
-        name: 'treeModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-    }, {
-        name: 'parentModified',
-        serialize: function(value) {
-            if (value === '') {
-                return null;
-            }
-            return value;
-        }
-*/
+        name: 'readonly',
+        type: 'boolean'
     }],
 
     idProperty: 'id',

http://lada.wald.intevation.org