Subversion Repositories SmartDukaan

Rev

Rev 32463 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32463 Rev 37105
Line 5... Line 5...
5
	});
5
	});
6
	$(document).on('click', ".change-auth-user-password", function() {
6
	$(document).on('click', ".change-auth-user-password", function() {
7
		console.log("change auth user password clicked......");
7
		console.log("change auth user password clicked......");
8
		loadChangeAuthUserPassword("main-content");
8
		loadChangeAuthUserPassword("main-content");
9
	});
9
	});
-
 
10
	$(document).on('click', ".reset-user-password", function() {
-
 
11
		console.log("reset user password clicked......");
-
 
12
		loadResetPassword("main-content");
-
 
13
	});
10
	$(document).on('click', ".mk_gmail_edit",
14
	$(document).on('click', ".mk_gmail_edit",
11
			function() {
15
			function() {
12
				var $that = $(this);
16
				var $that = $(this);
13
				bootbox
17
				bootbox
14
					.prompt(
18
					.prompt(
Line 250... Line 254...
250
	doGetAjaxRequestHandler(context + "/changePassword", function(response) {
254
	doGetAjaxRequestHandler(context + "/changePassword", function(response) {
251
		$('#' + domId).html(response);
255
		$('#' + domId).html(response);
252
	});
256
	});
253
}
257
}
254
 
258
 
-
 
259
function loadResetPassword(domId) {
-
 
260
	doGetAjaxRequestHandler(context + "/authUser/resetPasswordPage", function(response) {
-
 
261
		$('#' + domId).html(response);
-
 
262
	});
-
 
263
}
-
 
264
 
255
 
265
 
256
 
266
 
257
function changeAuthUserPassword(oldPassword, newPassword) {
267
function changeAuthUserPassword(oldPassword, newPassword) {
258
	var params = {
268
	var params = {
259
		"oldPassword": oldPassword,
269
		"oldPassword": oldPassword,