[Lada-commits] [PATCH 1 of 2] Added readonly flag to stammdaten model
Wald Commits
scm-commit at wald.intevation.org
Fri Feb 19 13:59:30 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1455886723 -3600
# Node ID 1251094e750050d0afee4245ed86078afdfc02c9
# Parent 56922c5c21fd0b2b735b498d1918af4b30ba6efc
Added readonly flag to stammdaten model.
diff -r 56922c5c21fd -r 1251094e7500 app/model/DatensatzErzeuger.js
--- 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',
diff -r 56922c5c21fd -r 1251094e7500 app/model/MessprogrammKategorie.js
--- 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',
diff -r 56922c5c21fd -r 1251094e7500 app/model/Probenehmer.js
--- 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',
More information about the Lada-commits
mailing list