Subversion Repositories SmartDukaan

Rev

Rev 24478 | Rev 24486 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24478 Rev 24481
Line 8... Line 8...
8
		loadChangeAuthUserPassword("main-content");
8
		loadChangeAuthUserPassword("main-content");
9
	});
9
	});
10
	$(".mk_gmail_edit").live('click', function(){
10
	$(".mk_gmail_edit").live('click', function(){
11
		bootbox.prompt("New Gmail Id", function(result){
11
		bootbox.prompt("New Gmail Id", function(result){
12
			if(result && result.indexOf('@gmail.com') > 0) {
12
			if(result && result.indexOf('@gmail.com') > 0) {
13
				doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $(this.data("id"))+ "&gmailId=" + result, function(response) {
13
				doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $(this).data("id") + "&gmailId=" + result, function(response) {
14
					if(response=="true") {
14
					if(response=="true") {
15
						bootbox.alert("Gmail Id updated successfully");
15
						bootbox.alert("Gmail Id updated successfully");
16
						$(this).closest('td').find('span').html(result);
16
						$(this).closest('td').find('span').html(result);
17
						$(this).closest('td').find('button').html('Edit');
17
						$(this).closest('td').find('button').html('Edit');
18
						return;
18
						return;