Subversion Repositories SmartDukaan

Rev

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

Rev 30122 Rev 30148
Line 256... Line 256...
256
		}
256
		}
257
	});
257
	});
258
});
258
});
259
 
259
 
260
function configureTagListingItemsDescriptionDropDown() {
260
function configureTagListingItemsDescriptionDropDown() {
261
	$('.tagListingItemsDescription').multiselect({
261
	$('.catalogItemsDescription').multiselect({
262
		includeSelectAllOption: true,
262
		includeSelectAllOption: true,
263
		maxHeight: 200,
263
		maxHeight: 200,
264
		buttonWidth: '180px',
264
		buttonWidth: '180px',
265
		numberDisplayed: 1,
265
		numberDisplayed: 1,
266
		nonSelectedText: 'Items',
266
		nonSelectedText: 'Models',
267
		nSelectedText: ' - Items Selected',
267
		nSelectedText: ' - Models Selected',
268
		allSelectedText: 'All Items Selected',
268
		allSelectedText: 'All Models Selected',
269
		enableFiltering: true,
269
		enableFiltering: true,
270
		enableCaseInsensitiveFiltering: true
270
		enableCaseInsensitiveFiltering: true
271
	});
271
	});
272
}
272
}
273
 
273
 
Line 284... Line 284...
284
 
284
 
285
function selectedbrand() {
285
function selectedbrand() {
286
	var brands = $('#tag-listing-brands').val();
286
	var brands = $('#tag-listing-brands').val();
287
	console.log(brands);
287
	console.log(brands);
288
	if (brands) {
288
	if (brands) {
289
		loadTagListingItemsDescriptionByBrand(
289
		loadCatalogDescriptionByBrands(
290
			"tag-listing-items-description-container", brands);
290
			"tag-listing-items-description-container", brands);
291
	}
291
	}
292
}
292
}
293
 
293
 
294
function loadSchemeDetails(schemeId, domId) {
294
function loadSchemeDetails(schemeId, domId) {
Line 357... Line 357...
357
		$('#' + domId).html(response);
357
		$('#' + domId).html(response);
358
	});
358
	});
359
 
359
 
360
}
360
}
361
 
361
 
362
function loadTagListingItemsDescriptionByBrand(domId, brands) {
362
function loadCatalogDescriptionByBrands(domId, brands) {
363
	doPostAjaxRequestWithJsonHandler(context + '/getTagListingItemsByBrand',
363
	doPostAjaxRequestWithJsonHandler(context + '/getCatalogDescriptionByBrands',
364
		JSON.stringify(brands), function (response) {
364
		JSON.stringify(brands), function (response) {
365
			$('#' + domId).html(response);
365
			$('#' + domId).html(response);
366
			debugger;
366
			debugger;
367
			configureTagListingItemsDescriptionDropDown();
367
			configureTagListingItemsDescriptionDropDown();
368
		});
368
		});