Subversion Repositories SmartDukaan

Rev

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

Rev 33465 Rev 33750
Line 6... Line 6...
6
 
6
 
7
	$(document).on('click', ".vendor-catalog-pricing-request", function() {
7
	$(document).on('click', ".vendor-catalog-pricing-request", function() {
8
		loadVendorCatalogPricingRequests("main-content");
8
		loadVendorCatalogPricingRequests("main-content");
9
	});
9
	});
10
 
10
 
-
 
11
	$(document).on('click', ".vendor-catalog-pricing-pending-request", function () {
-
 
12
		loadVendorCatalogPricingPendingRequests("main-content");
-
 
13
	});
-
 
14
 
11
	$(document).on('click', ".vendor-price-circular", function() {
15
	$(document).on('click', ".vendor-price-circular", function() {
12
		loadVendorPriceCircular("main-content");
16
		loadVendorPriceCircular("main-content");
13
	});
17
	});
14
 
18
 
15
	$(document).on('click', ".create-bulk-vendor-catalog-pricing", function () {
19
	$(document).on('click', ".create-bulk-vendor-catalog-pricing", function () {
Line 243... Line 247...
243
	doGetAjaxRequestHandler(context + "/vendorCatalogPricingRequests", function(response) {
247
	doGetAjaxRequestHandler(context + "/vendorCatalogPricingRequests", function(response) {
244
		$('#' + domId).html(response);
248
		$('#' + domId).html(response);
245
	});
249
	});
246
}
250
}
247
 
251
 
-
 
252
function loadVendorCatalogPricingPendingRequests(domId) {
-
 
253
	doGetAjaxRequestHandler(context + "/vendorCatalogPricingPendingRequests", function (response) {
-
 
254
		$('#' + domId).html(response);
-
 
255
	});
-
 
256
}
-
 
257
 
-
 
258
$(document).on('click', '.dateWisePricing', function () {
-
 
259
 
-
 
260
	var startDate = getDatesFromPicker('input[name="pricing-duration"]').startDate;
-
 
261
	var endDate = getDatesFromPicker('input[name="pricing-duration"]').endDate;
-
 
262
 
-
 
263
 
-
 
264
	doGetAjaxRequestHandler(context + "/datewiseVendorCatalogPricingPendingRequests?startDate=" + startDate + "&endDate=" + endDate, function (response) {
-
 
265
		$('#catalog-pricing-container').html(response);
-
 
266
 
-
 
267
	});
-
 
268
});
-
 
269
 
248
function loadVendorPriceCircular(domId) {
270
function loadVendorPriceCircular(domId) {
249
	doGetAjaxRequestHandler(context + "/vendorPriceCircular", function(response) {
271
	doGetAjaxRequestHandler(context + "/vendorPriceCircular", function(response) {
250
		$('#' + domId).html(response);
272
		$('#' + domId).html(response);
251
	});
273
	});
252
}
274
}