Przeglądaj źródła

修复论坛回复的时候头像和组织管理中不一致的问题

unknown 5 lat temu
rodzic
commit
76063dedc7
1 zmienionych plików z 7 dodań i 1 usunięć
  1. 7 1
      o2web/source/x_component_ForumDocument/Main.js

+ 7 - 1
o2web/source/x_component_ForumDocument/Main.js

@@ -1737,7 +1737,13 @@ MWF.xApplication.ForumDocument.ReplyEditor = new Class({
 						if( this.app.userData.icon ){
 							return "data:image/png;base64," + this.app.userData.icon
 						}else{
-							return "/x_component_ForumDocument/$Main/"+this.options.style+"/icon/noavatar_big.gif"
+							var src = "/x_component_ForumDocument/$Main/"+this.options.style+"/icon/noavatar_big.gif";
+							this.app.getUserData( this.app.userData.distinguishedName, function(json ){
+								src = json.data.icon;
+							}.bind(this), function(){
+								var src = "/x_component_ForumDocument/$Main/"+this.options.style+"/icon/noavatar_big.gif";
+							}, false );
+							return src;
 						}
 					}.bind(this)},
 					creatorName: { type : "innerText", value : ( this.app.userName || "" ).split('@')[0] },