[Mapbender-commits] r5926 - branches/3_dev/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Apr 11 09:27:33 EDT 2010


Author: astrid_emde
Date: 2010-04-11 09:27:33 -0400 (Sun, 11 Apr 2010)
New Revision: 5926

Modified:
   branches/3_dev/http/plugins/mb_forgot_password.js
Log:


Modified: branches/3_dev/http/plugins/mb_forgot_password.js
===================================================================
--- branches/3_dev/http/plugins/mb_forgot_password.js	2010-04-11 13:27:00 UTC (rev 5925)
+++ branches/3_dev/http/plugins/mb_forgot_password.js	2010-04-11 13:27:33 UTC (rev 5926)
@@ -8,13 +8,13 @@
 
 			}
 			else {
-				var $passwordDiv = $("<div title='forgotten Password'/>").hide().load("./plugins/mb_forgot_password_html.php", function (){
+				var $passwordDiv = $("<div title='Order a new password'/>").hide().load("./plugins/mb_forgot_password_html.php", function (){
 					$(this).find('form').validate()
 				});
 				$(this).append($passwordDiv).bind("click", function () {
 					$passwordDiv.dialog({
 						buttons: {
-							"Password": function () {
+							"ok": function () {
 								if (!$passwordDiv.find('form').valid()){
 									return false;
 								}
@@ -33,16 +33,29 @@
 											alert(message);		
 											return;
 										}
-										alert(message);
-									}
+										var parameters = {
+											command : "sendMailToUser",
+											userId : message
+										};
+
+										$.post("./plugins/mod_sendUserMail.php", parameters, function (json, status) {
+											if(status == 'success') {
+												alert(json);
+												$passwordDiv.dialog('close');
+											}else {
+												alert('send Error');
+											}
+										});
+																		}
 								});
 								req.send();
 								return false;
 							}
 						},
 						modal: true,
-						resizable: false,
-						draggable: false
+						resizable: true,
+						draggable: true,
+						width: 600
 					});
 				});
 			}



More information about the Mapbender_commits mailing list