Просмотр исходного кода

修复论坛修改密码显示异常的问题

unknown 5 лет назад
Родитель
Сommit
7d28fe86ab

+ 63 - 24
o2web/source/x_component_ForumDocument/Main.js

@@ -1109,35 +1109,74 @@ MWF.xApplication.ForumDocument.Main = new Class({
 		} );
 		selector.load();
 	},
-	openLoginForm : function( callback ){
-		//MWF.xDesktop.requireApp("Forum", "Login", null, false);
-		//var login = new MWF.xApplication.Forum.Login(this, {
-		//	onPostOk : function(){ if(callback)callback() }
-		//});
-		//login.openLoginForm();
+	// openLoginForm : function( callback ){
+	// 	//MWF.xDesktop.requireApp("Forum", "Login", null, false);
+	// 	//var login = new MWF.xApplication.Forum.Login(this, {
+	// 	//	onPostOk : function(){ if(callback)callback() }
+	// 	//});
+	// 	//login.openLoginForm();
+	// 	MWF.require("MWF.xDesktop.Authentication", null, false);
+	// 	var authentication = new MWF.xDesktop.Authentication({
+	// 		style : "application",
+	// 		onPostOk : function(){ if(callback)callback() }
+	// 	},this);
+	// 	authentication.openLoginForm({
+	// 		hasMask : true
+	// 	});
+	// },
+	// openSignUpForm : function(callback){
+	// 	//MWF.xDesktop.requireApp("Forum", "Login", null, false);
+	// 	//var login = new MWF.xApplication.Forum.Login(this, {
+	// 	//	onPostOk : function(){ if(callback)callback() }
+	// 	//});
+	// 	//login.openSignUpForm();
+	// 	MWF.require("MWF.xDesktop.Authentication", null, false);
+	// 	var authentication = new MWF.xDesktop.Authentication({
+	// 		style : "application",
+	// 		onPostOk : function(){ if(callback)callback() }
+	// 	},this);
+	// 	authentication.openSignUpForm({
+	// 		hasMask : true
+	// 	});
+	// },
+	openLoginForm : function(){
 		MWF.require("MWF.xDesktop.Authentication", null, false);
 		var authentication = new MWF.xDesktop.Authentication({
-			style : "application",
-			onPostOk : function(){ if(callback)callback() }
+			"style" : "flat",
+			"popupStyle_password": "o2platformSignupFlat",
+			onPostOk : function(){
+				if(callback)callback()
+			}
 		},this);
-		authentication.openLoginForm({
-			hasMask : true
-		});
+		authentication.popupOptions = {
+			"draggable": true,
+			"closeAction": true,
+			"hasMask": true,
+			"relativeToApp": true,
+			"width": "420",
+			"height": "640"
+		};
+		// authentication.loadLogin(this.app.content);
+		authentication.openLoginForm();
 	},
-	openSignUpForm : function(callback){
-		//MWF.xDesktop.requireApp("Forum", "Login", null, false);
-		//var login = new MWF.xApplication.Forum.Login(this, {
-		//	onPostOk : function(){ if(callback)callback() }
-		//});
-		//login.openSignUpForm();
+	openSignUpForm : function(){
 		MWF.require("MWF.xDesktop.Authentication", null, false);
-		var authentication = new MWF.xDesktop.Authentication({
-			style : "application",
-			onPostOk : function(){ if(callback)callback() }
-		},this);
-		authentication.openSignUpForm({
-			hasMask : true
-		});
+		var authentication = new MWF.xDesktop.Authentication( {
+			style : "flat",
+			"popupStyle_password": "o2platformSignupFlat",
+			onPostOk : function(){
+				if(callback)callback()
+			}
+		}, this);
+		authentication.popupOptions = {
+			"draggable": true,
+			"closeAction": true,
+			"hasMask": true,
+			"relativeToApp": true,
+			"width": "420",
+			"height": "640"
+		};
+		authentication.openSignUpForm();
 	},
 	gotoReply : function( index ){
 		this.replyView.paging.gotoItem( index );

+ 56 - 18
o2web/source/x_component_ForumSection/Main.js

@@ -404,38 +404,76 @@ MWF.xApplication.ForumSection.Main = new Class({
 		var height = nodeSize.y - topSize.y - pt - pb;
 		this.contentContainerNode.setStyle("height", "" + height + "px");
 	},
+	// openLoginForm : function(){
+	// 	//MWF.xDesktop.requireApp("Forum", "Login", null, false);
+	// 	//var login = new MWF.xApplication.Forum.Login(this, {
+	// 	//    onPostOk : function(){
+	// 	//        window.location.reload();
+	// 	//    }
+	// 	//});
+	// 	//login.openLoginForm();
+	// 	MWF.require("MWF.xDesktop.Authentication", null, false);
+	// 	var authentication = new MWF.xDesktop.Authentication({
+	// 		style : "application",
+	// 		onPostOk : function(){
+	// 			window.location.reload();
+	// 		}
+	// 	},this);
+	// 	authentication.openLoginForm({
+	// 		hasMask : true
+	// 	});
+	// },
+	// openSignUpForm : function(){
+	// 	//MWF.xDesktop.requireApp("Forum", "Login", null, false);
+	// 	//var login = new MWF.xApplication.Forum.Login(this, {});
+	// 	//login.openSignUpForm();
+	// 	MWF.require("MWF.xDesktop.Authentication", null, false);
+	// 	var authentication = new MWF.xDesktop.Authentication( {
+	// 		style : "application",
+	// 		onPostOk : function(){
+	// 		}
+	// 	}, this);
+	// 	authentication.openSignUpForm({
+	// 		hasMask : true
+	// 	});
+	// },
 	openLoginForm : function(){
-		//MWF.xDesktop.requireApp("Forum", "Login", null, false);
-		//var login = new MWF.xApplication.Forum.Login(this, {
-		//    onPostOk : function(){
-		//        window.location.reload();
-		//    }
-		//});
-		//login.openLoginForm();
 		MWF.require("MWF.xDesktop.Authentication", null, false);
 		var authentication = new MWF.xDesktop.Authentication({
-			style : "application",
+			"style" : "flat",
+			"popupStyle_password": "o2platformSignupFlat",
 			onPostOk : function(){
 				window.location.reload();
 			}
 		},this);
-		authentication.openLoginForm({
-			hasMask : true
-		});
+		authentication.popupOptions = {
+			"draggable": true,
+			"closeAction": true,
+			"hasMask": true,
+			"relativeToApp": true,
+			"width": "420",
+			"height": "640"
+		};
+		// authentication.loadLogin(this.app.content);
+		authentication.openLoginForm();
 	},
 	openSignUpForm : function(){
-		//MWF.xDesktop.requireApp("Forum", "Login", null, false);
-		//var login = new MWF.xApplication.Forum.Login(this, {});
-		//login.openSignUpForm();
 		MWF.require("MWF.xDesktop.Authentication", null, false);
 		var authentication = new MWF.xDesktop.Authentication( {
-			style : "application",
+			style : "flat",
+			"popupStyle_password": "o2platformSignupFlat",
 			onPostOk : function(){
 			}
 		}, this);
-		authentication.openSignUpForm({
-			hasMask : true
-		});
+		authentication.popupOptions = {
+			"draggable": true,
+			"closeAction": true,
+			"hasMask": true,
+			"relativeToApp": true,
+			"width": "420",
+			"height": "640"
+		};
+		authentication.openSignUpForm();
 	},
 	recordStatus: function(){
 		return {