Explorar o código

版式正文痕迹保留修改

huqi %!s(int64=6) %!d(string=hai) anos
pai
achega
85894a9fe5

+ 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){