Subversion Repositories SmartDukaan

Rev

Rev 30003 | Rev 30047 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30003 Rev 30046
Line 1... Line 1...
1
$(function() {
1
$(function() {
2
	$(document).on('click', ".partner-brandwise-detail", function() {
2
	$(document).on('click', ".partner-brandwise-detail", function() {
3
		loadDetails("main-content");
3
		loadDetails("main-content");
4
	});
4
	});
-
 
5
	
5
 
6
 
-
 
7
	$(document).on('click', ".changeActivation", function() {
-
 
8
		var row = $(this).closest("tr");
-
 
9
	    var code = $(row).find("td:eq(1)").text();
-
 
10
	    var activationType = $(row).find("td:eq(2) option:selected").val();
-
 
11
		
-
 
12
		if (confirm("Are you sure ") == true) {
-
 
13
					doPostAjaxRequestHandler(context + "/changeActivationType?code=" + code + "&activationType="+ activationType,
-
 
14
						function (response) {
-
 
15
		
-
 
16
							console.log(response);
-
 
17
							
-
 
18
							if(response == true){
-
 
19
							loadDetails("main-content");
-
 
20
							}
-
 
21
							
-
 
22
						});
-
 
23
		
-
 
24
		
-
 
25
				}
-
 
26
	});
6
});
27
});
7
 
28
 
8
 
29
 
9
function loadDetails(domId) {
30
function loadDetails(domId) {
10
 
31
 
Line 12... Line 33...
12
		function(response) {
33
		function(response) {
13
			$('#' + domId).html(response);
34
			$('#' + domId).html(response);
14
		});
35
		});
15
}
36
}
16
 
37
 
-
 
38
 
-
 
39