| Line 6... |
Line 6... |
| 6 |
$(".change-auth-user-password").live('click', function() {
|
6 |
$(".change-auth-user-password").live('click', 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 |
$(".mk_gmail_edit").live('click', function(){
|
10 |
$(".mk_gmail_edit").live('click', function(){
|
| - |
|
11 |
var $that = $(this);
|
| 11 |
bootbox.prompt("New Gmail Id", function(result){
|
12 |
bootbox.prompt("New Gmail Id", function(result){
|
| 12 |
if(result && result.indexOf('@gmail.com') > 0) {
|
13 |
if(result && result.indexOf('@gmail.com') > 0) {
|
| 13 |
doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $(this).data("id") + "&gmailId=" + result, function(response) {
|
14 |
doGetAjaxRequestHandler(context + "/authuser/edit?emailId=" + $that.data("id") + "&gmailId=" + result, function(response) {
|
| 14 |
if(response=="true") {
|
15 |
if(response=="true") {
|
| 15 |
bootbox.alert("Gmail Id updated successfully");
|
16 |
bootbox.alert("Gmail Id updated successfully");
|
| 16 |
$(this).closest('td').find('span').html(result);
|
17 |
$(this).closest('td').find('span').html(result);
|
| 17 |
$(this).closest('td').find('button').html('Edit');
|
18 |
$(this).closest('td').find('button').html('Edit');
|
| 18 |
return;
|
19 |
return;
|