Subversion Repositories SmartDukaan

Rev

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

$(function() {

$(document).on('click', '.retail-block-brand-submit', function() { 
             var brand = $('#block-brand').val();
             var fofoIds = $('#selected-block-ids').val();
            if (confirm("Are you sure you want to submit") == true) {
        doPostAjaxRequestHandler(context + "/getRetailerBlockBrandMappping?brand="+brand+"&fofoIds="+fofoIds,
                        function(response) {
                                if(response =true){
                                
                                alert("Successfully Submitted");
                                $("button.block-brand-submit").click();
                                }
                        });
                        }
                        });
                        
                
     
       $(document).on('click', '.block-brand-submit', function() { 
       
               var brand = $('#block-brand').val();
              
        
        doGetAjaxRequestHandler(context + "/getBlockBrand?brand=" + brand,
                        function(response) {
                                $('.partnersbyblockbrands').html(response);
                        });
             
         
        });

});