Browse Source

版式正文痕迹保留修改

huqi 5 years ago
parent
commit
85894a9fe5
1 changed files with 5 additions and 0 deletions
  1. 5 0
      o2web/source/x_component_process_Xform/widget/DocumentHistory.js

+ 5 - 0
o2web/source/x_component_process_Xform/widget/DocumentHistory.js

@@ -560,6 +560,10 @@ MWF.xApplication.process.Xform.widget.DocumentHistory = new Class({
     },
 
     createDiifInforNode: function(obj, node, color, insertInfor){
+        if (this.historyInforDiv){
+            this.historyInforDiv.dispose();
+            this.historyInforDiv = null;
+        }
         var insertInforDiv = new Element("div", { "styles": this.css.historyInforNode }).inject(this.documentEditor.node);
         insertInforDiv.setStyle("background", color);
         insertInfor = insertInfor.replace(/{name}/, o2.name.cn(obj.person))
@@ -574,6 +578,7 @@ MWF.xApplication.process.Xform.widget.DocumentHistory = new Class({
                 "x": 0, "y": -10
             }
         });
+        this.historyInforDiv = insertInforDiv;
         return insertInforDiv;
     },
     doDiffsAnimation: function(obj, start, callback){