Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28272 tejbeer 1
 
2
$(function() {
3
 
4
$(document).on('click', '.brands-limit-submit', function() { 
5
 
6
               var brand = $('#show-brands').val();
7
 
8
 
9
        doGetAjaxRequestHandler(context + "/getRetailerBrandslimitMapping?brand=" + brand,
10
			function(response) {
11
				$('.partnerByBrandsLimit').html(response);
12
			});
13
	});
14
 
15
	$(document).on('click', '.brands-update', function() { 
16
 
17
 
18
	 var brands = $(this).data('brand');
19
	 console.log(brands);
20
        var limit= $("form#brand-limit-container input[name=inputLimit]").val();      
21
 
22
     doPostAjaxRequestHandler(context + "/setBrandWiseLimit?brands=" + brands + "&limit=" + limit, 
23
			function(response) {
24
				$('.partnerByBrandsLimit').html(response);
25
			});
26
 
27
	});
28
 
29
$(document).on('click', '.limit_update_submit', function() { 	
30
     var row = $(this).closest("tr");
31
 
32
     var fofoId = $(this).data('id');
33
      var limit = $(row).find("input").val();      
34
 
35
       var brand = $(this).data('brand');
36
 
37
  doPostAjaxRequestHandler(context + "/setUpdateLimit?brand=" + brand + "&limit=" + limit + "&fofoId=" + fofoId, 
38
			function(response) {
39
				row.html(response);
40
			});
41
 
42
	});
43
 
44
	});