projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roles management working good
[lgpl/argeo-commons.git]
/
security
/
runtime
/
org.argeo.security.ria
/
src
/
argeo-ria-lib
/
security
/
class
/
org
/
argeo
/
security
/
ria
/
components
/
SimpleUserNatureImpl.js
diff --git
a/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js
b/security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js
index 342cee246bf91cae6891673a037d89ee42e48674..182183ab1beae8716fd1bd3a599f0d2a0d49efd5 100644
(file)
--- a/
security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js
+++ b/
security/runtime/org.argeo.security.ria/src/argeo-ria-lib/security/class/org/argeo/security/ria/components/SimpleUserNatureImpl.js
@@
-20,11
+20,18
@@
qx.Class.define("org.argeo.security.ria.components.SimpleUserNatureImpl", {
init : true,
\r
apply : "_applyEditMode",
\r
event : "changeEditMode"
\r
init : true,
\r
apply : "_applyEditMode",
\r
event : "changeEditMode"
\r
+ },
\r
+ isNew : {
\r
+ init : false,
\r
+ check : "Boolean"
\r
}
\r
},
\r
\r
construct : function(){
\r
this.base(arguments);
\r
}
\r
},
\r
\r
construct : function(){
\r
this.base(arguments);
\r
+ this.setDataMap({
\r
+ type:"org.argeo.security.nature.SimpleUserNature"
\r
+ });
\r
this._createGui();
\r
this.setEditMode(false);
\r
},
\r
this._createGui();
\r
this.setEditMode(false);
\r
},
\r
@@
-79,10
+86,8
@@
qx.Class.define("org.argeo.security.ria.components.SimpleUserNatureImpl", {
},
\r
getData : function(format){
\r
var dataMap = this.getDataMap();
\r
},
\r
getData : function(format){
\r
var dataMap = this.getDataMap();
\r
- for(var key in dataMap){
\r
- if(this.fields[key]){
\r
- dataMap[key] = this.fields[key].getValue();
\r
- }
\r
+ for(var key in this.fields){
\r
+ dataMap[key] = this.fields[key].getValue();
\r
}
\r
this.setDataMap(dataMap);
\r
return dataMap;
\r
}
\r
this.setDataMap(dataMap);
\r
return dataMap;
\r