Subversion Repositories SmartDukaan

Rev

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

Rev 29811 Rev 29813
Line 4... Line 4...
4
 
4
 
5
 
5
 
6
 
6
 
7
$(document).on('click', '.activate-partner-kred', function() {
7
$(document).on('click', '.activate-partner-kred', function() {
8
	var row = $(this).closest("tr");
8
	var row = $(this).closest("tr");
9
	var fofoId = $(this).data('fofoid');
9
	var id = $(this).data('id');
10
	if (confirm('Confirm upload ?')) {
10
	if (confirm('Are you sure you want to activate?')) {
11
		doPostAjaxRequestHandler(context + "/activateKred?fofoId=" + fofoId,
11
		doPostAjaxRequestHandler(context + "/activateKred?id=" + id,
12
			function(response) {
12
			function(response) {
13
				row.html(response);
13
				row.html(response);
14
				alert("successfully activate");
14
				alert("successfully activate");
15
 
15
 
16
 
16
 
Line 19... Line 19...
19
	}
19
	}
20
});
20
});
21
 
21
 
22
$(document).on('click', '.deactivate-partner-kred', function() {
22
$(document).on('click', '.deactivate-partner-kred', function() {
23
	var row = $(this).closest("tr");
23
	var row = $(this).closest("tr");
24
	var fofoId = $(this).data('fofoid');
24
	var id = $(this).data('id');
25
	if (confirm('Confirm upload ?')) {
25
	if (confirm('Are you sure you want to deactivate?')) {
26
		doPostAjaxRequestHandler(context + "/deactivateKred?fofoId=" + fofoId,
26
		doPostAjaxRequestHandler(context + "/deactivateKred?id=" + id,
27
			function(response) {
27
			function(response) {
28
				row.html(response);
28
				row.html(response);
29
				alert("successfully deactivate");
29
				alert("successfully deactivate");
30
 
30
 
31
			});
31
			});