Subversion Repositories SmartDukaan

Rev

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

Rev 35648 Rev 35674
Line 232... Line 232...
232
 
232
 
233
	$(document).on('click', ".update-category",
233
	$(document).on('click', ".update-category",
234
		function() {
234
		function() {
235
			var fofoId = $(this).data('fofoid');
235
			var fofoId = $(this).data('fofoid');
236
			var partnerType = $('#partnerCategory').val();
236
			var partnerType = $('#partnerCategory').val();
-
 
237
			var durationMonths = $('#upgradeDuration').val();
237
 
238
 
238
			if (confirm("Are you sure you want to update the partners!") == true) {
239
			if (confirm("Are you sure you want to upgrade for " + durationMonths + " month(s)?") == true) {
239
				doPostAjaxRequestHandler(context
240
				doPostAjaxRequestHandler(context
240
					+ "/updatePartnerCategory?fofoId="
241
					+ "/updatePartnerCategory?fofoId="
241
					+ fofoId + "&partnerType=" + partnerType, function(
242
					+ fofoId + "&partnerType=" + partnerType + "&durationMonths=" + durationMonths, function(
242
						response) {
243
						response) {
243
					if (response == "true") {
244
					if (response == "true") {
244
						alert("Update successfully");
245
						alert("Update successfully");
245
						storeInfo("main-content");
246
						storeInfo("main-content");
246
					}
247
					}