Subversion Repositories SmartDukaan

Rev

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

Rev 32651 Rev 32667
Line 75... Line 75...
75
                }
75
                }
76
            }
76
            }
77
        }
77
        }
78
    });
78
    });
79
});
79
});
-
 
80
$('#updateEmail').click(function() {
-
 
81
           // alert("testing");
-
 
82
            var newEmail = $('#emailId').val();
-
 
83
           var fofoID = $('#fofoID').val();
-
 
84
         //var fofoID=123;
-
 
85
            //alert(newEmail);
-
 
86
            doAjaxRequestHandler(`${context}/retailer/update-email?newEmail=${newEmail}&fofoID=${fofoID}`, "POST",
-
 
87
            function (response) {
-
 
88
                    if(response) {
-
 
89
                        alert("Email has been updated : Email will be effective after 30 minutes");
-
 
90
                        $("#retailer-details-search-button").val(newEmail).click();
-
 
91
                    }
80
 
92
 
-
 
93
            });
-
 
94
});
81
//$(document).on('click', '#updateEmail', function () {
95
//$(document).on('click', '#updateEmail', function () {
82
//    let newEmail = $("form#update-retailer-details-form input[name=emailId]").val();
96
//    let newEmail = $("form#update-retailer-details-form input[name=emailId]").val();
83
//    console.log('my error', newEmail);
97
//    console.log('my error', newEmail);
84
//    doAjaxRequestHandler(context + "/retailer/update-email", "POST", newEmail, function (response) {
98
//    doAjaxRequestHandler(context + "/retailer/update-email", "POST", newEmail, function (response) {
85
//        $('#' + "main-content").html(response);
99
//        $('#' + "main-content").html(response);
Line 831... Line 845...
831
        console.log("documentName : " + name);
845
        console.log("documentName : " + name);
832
        doAjaxGetDownload(context + "/retailerShopDocument/download?shopId="
846
        doAjaxGetDownload(context + "/retailerShopDocument/download?shopId="
833
            + shopId + "&retailerId=" + retailerId, name);
847
            + shopId + "&retailerId=" + retailerId, name);
834
    });
848
    });
835
 
849
 
-
 
850
//    $(document).ready(function(){
-
 
851
//    $('#updateEmail').click(function(){
-
 
852
//    });
-
 
853
//
-
 
854
//    });
-
 
855
 
836
}
856
}
837
 
857
 
838
 
858
 
839
 
859