Subversion Repositories SmartDukaan

Rev

Rev 28071 | Rev 28381 | Go to most recent revision | Details | Compare with Previous | 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
 
28079 tejbeer 11
				alert("Successfully Submitted");
28071 tejbeer 12
				$("button.block-brand-submit").click();
13
				}
14
			});
15
			}
16
			});
17
 
18
 
19
 
20
       $(document).on('click', '.block-brand-submit', function() { 
21
 
22
               var brand = $('#block-brand').val();
23
 
24
 
25
        doGetAjaxRequestHandler(context + "/getBlockBrand?brand=" + brand,
26
			function(response) {
27
				$('.partnersbyblockbrands').html(response);
28
			});
29
 
30
 
31
        });
32
 
33
});