|
|
@@ -379,6 +379,10 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if(item.readOnly){
|
|
|
+ item.defaultReadOnly = item.readOnly;
|
|
|
+ }
|
|
|
+
|
|
|
if (bind) {
|
|
|
if (!Ext.isString(bind)) {
|
|
|
Ext.apply(bind, {
|
|
|
@@ -433,7 +437,7 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
|
|
|
Ext.Array.each(items, function(item) {
|
|
|
if(typeof item.setReadOnly == 'function') {
|
|
|
- item.setReadOnly (item.readOnly || !able);
|
|
|
+ item.setReadOnly (item.defaultReadOnly || !able);
|
|
|
}
|
|
|
});
|
|
|
},
|