|
@@ -81,7 +81,9 @@ Ext.define('saas.view.core.form.field.ConDbfindTrigger', {
|
|
|
});
|
|
});
|
|
|
field1.on('blur', function(f) {
|
|
field1.on('blur', function(f) {
|
|
|
f.ownerCt.dbValues = f.dbValues;
|
|
f.ownerCt.dbValues = f.dbValues;
|
|
|
- me.fireEvent('change', this)
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ field1.on('dirtychange',function(f,dirty,e){
|
|
|
|
|
+ me.dirtyChange(me,f,dirty)
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
field2.on('validChange', function() {
|
|
field2.on('validChange', function() {
|
|
@@ -109,5 +111,11 @@ Ext.define('saas.view.core.form.field.ConDbfindTrigger', {
|
|
|
|
|
|
|
|
isDirty: function() {
|
|
isDirty: function() {
|
|
|
return this.items.items[0].isDirty() || this.items.items[1].isDirty();
|
|
return this.items.items[0].isDirty() || this.items.items[1].isDirty();
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ dirtyChange:function(me,f,dirty){
|
|
|
|
|
+ if(dirty || !f.value || f.value == ''){
|
|
|
|
|
+ me.fireEvent('change');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|