Răsfoiți Sursa

Merge branch 'fix/Meeting_attachment' into 'wrdp'

Merge of fix/Meeting_attachment 修复会议管理附件样式错乱的问题 to wrdp

See merge request o2oa/o2oa!2341
蔡祥熠 5 ani în urmă
părinte
comite
83ea4b8077
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      o2web/source/x_component_Meeting/Common.js

+ 8 - 2
o2web/source/x_component_Meeting/Common.js

@@ -1655,8 +1655,14 @@ MWF.xApplication.Meeting.MeetingTooltip.AttachmentMin = new Class({
     Extends : MWF.widget.AttachmentController.AttachmentMin,
     setEvent: function(){
         this.node.addEvents({
-            "mouseover": function(){if (!this.isSelected) this.node.setStyles(this.css["minAttachmentNode_list_over"])}.bind(this),
-            "mouseout": function(){if (!this.isSelected) this.node.setStyles(this.css["minAttachmentNode_list"])}.bind(this),
+            "mouseover": function(){
+                var styleName = "attachmentNode_"+this.controller.options.listStyle+"_over";
+                if (!this.isSelected) this.node.setStyles(this.css[styleName])
+            }.bind(this),
+            "mouseout": function(){
+                var styleName = "attachmentNode_"+this.controller.options.listStyle;
+                if (!this.isSelected) this.node.setStyles(this.css[styleName])
+            }.bind(this),
             "mousedown": function(e){this.selected(e);}.bind(this),
             "click": function(e){this.downloadAttachment(e);}.bind(this)
         });