Subversion Repositories SmartDukaan

Rev

Rev 28079 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28071 tejbeer 1
$(function() {
2
 
3
$(document).on('click', '.retail-block-brand-submit', function() { 
4
             var brand = $('#block-brand').val();
5
             var fofoIds = $('#selected-block-ids').val();
6
            if (confirm("Are you sure you want to submit") == true) {
7
        doPostAjaxRequestHandler(context + "/getRetailerBlockBrandMappping?brand="+brand+"&fofoIds="+fofoIds,
8
			function(response) {
9
				if(response =true){
10
 
11
				$("button.block-brand-submit").click();
12
				}
13
			});
14
			}
15
			});
16
 
17
 
18
 
19
       $(document).on('click', '.block-brand-submit', function() { 
20
 
21
               var brand = $('#block-brand').val();
22
 
23
 
24
        doGetAjaxRequestHandler(context + "/getBlockBrand?brand=" + brand,
25
			function(response) {
26
				$('.partnersbyblockbrands').html(response);
27
			});
28
 
29
 
30
        });
31
 
32
});