Subversion Repositories SmartDukaan

Rev

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

Rev 32641 Rev 32651
Line 76... Line 76...
76
            }
76
            }
77
        }
77
        }
78
    });
78
    });
79
});
79
});
80
 
80
 
81
$(document).on('click', '#updateEmail', function () {
81
//$(document).on('click', '#updateEmail', function () {
82
 
-
 
83
    let newEmail = $("form#update-retailer-details-form input[name=emailId]").val();
82
//    let newEmail = $("form#update-retailer-details-form input[name=emailId]").val();
84
    console.log('my error', newEmail);
83
//    console.log('my error', newEmail);
85
 
-
 
86
    doAjaxRequestHandler(context + "/retailer/update-email", "PUT", newEmail, function (response) {
84
//    doAjaxRequestHandler(context + "/retailer/update-email", "POST", newEmail, function (response) {
87
        $('#' + "main-content").html(response);
85
//        $('#' + "main-content").html(response);
88
        alert("Email has been updated");
86
//        alert("Email has been updated");
89
        console.log("Updated email");
87
//        console.log("Updated email");
90
    });
88
//    });
91
});
89
//});
92
 
90
 
93
 
91
 
94
$().ready(function () {
92
$().ready(function () {
95
    $('#new-shops').click(function (e) {
93
    $('#new-shops').click(function (e) {
96
        console.log("new-shops clicked");
94
        console.log("new-shops clicked");