Subversion Repositories SmartDukaan

Rev

Rev 34651 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34651 Rev 37564
Line 222... Line 222...
222
			pageLength: 20,
222
			pageLength: 20,
223
			order: [[5, 'desc']]
223
			order: [[5, 'desc']]
224
		});
224
		});
225
 
225
 
226
 
226
 
-
 
227
		## New price drop: creation screen, so only live listings (activeOnly = true).
227
		getItemAheadOptions($("#typeaheaditem"), true, function (selectedItem) {
228
		getItemAheadOptions($("#typeaheaditem"), true, function (selectedItem) {
228
			currentItem = selectedItem;
229
			currentItem = selectedItem;
229
			doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId, function (response) {
230
			doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId, function (response) {
230
				response = JSON.parse(response);
231
				response = JSON.parse(response);
231
				$('#oldDp').html(response.dp);
232
				$('#oldDp').html(response.dp);
232
				$('#oldMop').html(response.mop);
233
				$('#oldMop').html(response.mop);
233
				$('#oldTp').html(response.tp);
234
				$('#oldTp').html(response.tp);
234
				$('#oldNlc').html(response.nlc);
235
				$('#oldNlc').html(response.nlc);
235
			});
236
			});
236
		});
237
		}, true);
237
		getItemAheadOptions($("#typeaheaditem1"), true, function (selectedItem) {
238
		getItemAheadOptions($("#typeaheaditem1"), true, function (selectedItem) {
238
			currentItem = selectedItem;
239
			currentItem = selectedItem;
239
			doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId, function (response) {
240
			doGetAjaxRequestHandler(context + "/item-pricing/" + currentItem.itemId, function (response) {
240
				$('.mk_pause_button').data("id", currentItem.catalogId);
241
				$('.mk_pause_button').data("id", currentItem.catalogId);
241
				$('.mk_pause_button').data("description", currentItem.itemDescription);
242
				$('.mk_pause_button').data("description", currentItem.itemDescription);