Subversion Repositories SmartDukaan

Rev

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

Rev 26362 Rev 27071
Line 129... Line 129...
129
	$('button.mk_download_pricing').live('click', function(){
129
	$('button.mk_download_pricing').live('click', function(){
130
		doAjaxGetDownload(context+"/tagListing/download/4", "pricing.xlsx")
130
		doAjaxGetDownload(context+"/tagListing/download/4", "pricing.xlsx")
131
	});
131
	});
132
	
132
	
133
	$('.mk_auto_process').live('click', function (){
133
	$('.mk_auto_process').live('click', function (){
-
 
134
		var trElement=$(this).closest('tr');
-
 
135
		var payout = trElement.find('input.partner-payout').val();
-
 
136
		if(isNaN(parseInt(payout)) || parseInt(payout) <=0) {
-
 
137
			alert("Invalid payout amount");
-
 
138
		}
134
		if (confirm("Are you sure you want to Process Payout?")) {
139
		if (confirm("Are you sure you want to Process Payout?")) {
135
			clickedPriceDrop = $(this);
140
			clickedPriceDrop = $(this);
136
			var trElement=$(this).closest('tr');
-
 
137
			var priceDropId = trElement.data('pricedropid');
141
			var priceDropId = trElement.data('pricedropid');
138
			autoProcess({priceDropId:priceDropId})
142
			autoProcess({priceDropId:priceDropId, partnerPayout:payout, activatedOnly:$(this).data('activatedonly')})
139
		}
143
		}
140
	});
144
	});
141
 
145
 
142
	$('.mk_view_imeis').live('click', function (){
146
	$('.mk_view_imeis').live('click', function (){
143
		clickedPriceDrop = $(this);
147
		clickedPriceDrop = $(this);