Subversion Repositories SmartDukaan

Rev

Rev 30046 | Rev 33860 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

$(function() {
        $(document).on('click', ".partner-brandwise-detail", function() {
                loadDetails("main-content");
        });


        $(document).on('change', "#activationType", function() {
                var row = $(this).closest("tr");
                var code = $(row).find("td:eq(1)").text();
                var activationType = $(row).find("td:eq(2) option:selected").val();

                if (confirm("Are you sure ") == true) {
                        doPostAjaxRequestHandler(context + "/changeActivationType?code=" + code + "&activationType=" + activationType,
                                function(response) {

                                        console.log(response);

                                        if (response == true) {
                                                loadDetails("main-content");
                                        }

                                });


                }
        });
});


function loadDetails(domId) {

        doGetAjaxRequestHandler(context + "/getPartnersBrandWiseDetail",
                function(response) {
                        $('#' + domId).html(response);
                });
}