Subversion Repositories SmartDukaan

Rev

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

Rev 24486 Rev 24489
Line 12... Line 12...
12
		bootbox.prompt("New Gmail Id", function(result){
12
		bootbox.prompt("New Gmail Id", function(result){
13
			if(result && result.indexOf('@gmail.com') > 0) {
13
			if(result && result.indexOf('@gmail.com') > 0) {
14
				doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $that.data("id") + "&gmailId=" + result, function(response) {
14
				doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $that.data("id") + "&gmailId=" + result, function(response) {
15
					if(response=="true") {
15
					if(response=="true") {
16
						bootbox.alert("Gmail Id updated successfully");
16
						bootbox.alert("Gmail Id updated successfully");
17
						$(this).closest('td').find('span').html(result);
17
						$that.closest('td').find('span').html(result);
18
						$(this).closest('td').find('button').html('Edit');
18
						$that.closest('td').find('button').html('Edit');
19
						return;
19
						return;
20
					}
20
					}
21
				});
21
				});
22
			} else {
22
			} else {
23
				bootbox.alert("Gmail id is required");
23
				bootbox.alert("Gmail id is required");