Subversion Repositories SmartDukaan

Rev

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

Rev 27754 Rev 27755
Line 5... Line 5...
5
 
5
 
6
	var id = 0;
6
	var id = 0;
7
	var retailerId;
7
	var retailerId;
8
	var fofoId;
8
	var fofoId;
9
 
9
 
10
	$("#promoter-info-paginated .next").live(
10
	$(document).on('click', "#promoter-info-paginated .next",
11
		'click',
-
 
12
		function() {
11
		function() {
13
 
12
 
14
			var fofo = fofoId;
13
			var fofo = fofoId;
15
			console.log(fofoId)
14
			console.log(fofoId)
16
			if ((fofoId)) {
15
			if ((fofoId)) {
Line 29... Line 28...
29
				$(this).blur();
28
				$(this).blur();
30
			}
29
			}
31
		});
30
		});
32
 
31
 
33
 
32
 
34
	$("#promoter-info-paginated .previous").live(
33
	$(document).on('click', "#promoter-info-paginated .previous",
35
		'click',
-
 
36
		function() {
34
		function() {
37
			var fofo = fofoId;
35
			var fofo = fofoId;
38
			console.log(fofoId)
36
			console.log(fofoId)
39
			if ((fofoId)) {
37
			if ((fofoId)) {
40
 
38
 
Line 53... Line 51...
53
				$(this).blur();
51
				$(this).blur();
54
			}
52
			}
55
		});
53
		});
56
 
54
 
57
 
55
 
58
	$(".create-promoter").live(
56
	$(document).on('click', ".create-promoter",
59
		'click',
-
 
60
		function() {
57
		function() {
61
			var name = $('#promoterName').val();
58
			var name = $('#promoterName').val();
62
			var brand = $('#tag-listing-brands').val();
59
			var brand = $('#tag-listing-brands').val();
63
			var email = $('#promoterEmail').val();
60
			var email = $('#promoterEmail').val();
64
			var mobile = $('#promoterMobile').val();
61
			var mobile = $('#promoterMobile').val();
Line 146... Line 143...
146
		$('#promoterMobile').attr('readonly', true);*/
143
		$('#promoterMobile').attr('readonly', true);*/
147
		$('#partnerFofoId').attr('disabled', true);
144
		$('#partnerFofoId').attr('disabled', true);
148
		$('#tag-listing-brands').attr('disabled', true);
145
		$('#tag-listing-brands').attr('disabled', true);
149
 
146
 
150
	});
147
	});
151
	$(".removePromoter")
148
	$(document).on('click', ".removePromoter",
152
		.live(
-
 
153
			'click',
-
 
154
			function() {
149
			function() {
155
				id = $(this).data('requestid');
150
				id = $(this).data('requestid');
156
				if (confirm("Are you sure you want to remove Promoter Partner Store!") == true) {
151
				if (confirm("Are you sure you want to remove Promoter Partner Store!") == true) {
157
					doPostAjaxRequestHandler(context
152
					doPostAjaxRequestHandler(context
158
						+ "/removePromoterfromPartnerStore?id="
153
						+ "/removePromoterfromPartnerStore?id="