Pman.Dialog.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsBlog.js
index f5fb4bf..bf292df 100644 (file)
@@ -338,22 +338,22 @@ Pman.Dialog.CmsBlog = {
        },
       collapsed : function (_self)
        {
-           if(_this.trform){
+           if(_this.trform && _this.trform.isDirty()){
                _this.trform.reset();
                Roo.log('reset trform');
            }
            
-           if(_this.trform1){
+           if(_this.trform1 && _this.trform1.isDirty()){
                _this.trform1.reset();
                Roo.log('reset trform1');
            }
            
-           if(_this.trform2){
+           if(_this.trform2 && _this.trform2.isDirty()){
                _this.trform2.reset();
                Roo.log('reset trform2');
            }
            
-           if(_this.trform3){
+           if(_this.trform3 && _this.trform3.isDirty()){
                _this.trform3.reset();
                Roo.log('reset trform3');
            }