JCLI | Contracts from RIBA Books
JCLI 2017 Landscape Works Contract with Contractors Design £43.20
JCLI 2017 LANDSCAPE WORKS CONTRACT £43.20
JCLI 2017 Landscape Maintenance Works Contract £43.20
').attr({ 'data-sort-default': item.SortOrder, 'data-sort-name': item.Name, 'data-sort-price': item.SortPrice, 'data-sort-sales': item.SalesCount, 'data-sort-reviews': item.ReviewAverage }) //.append(article); .append(link.append( wrap //wrap.append(imageBlock) // .append(reviewsDiv) // .append(nameLink) ) ); li.appendTo('#CMSModule_38813_items'); }); /* *
*/ $(document).foundation('interchange', 'reflow'); sortCategoryItems(sortOrder); checkMoreAvailable(); } }, failure: function() { } }); } function sortCategoryItems(sortOrder) { var sortParams = getSortField(sortOrder); if (sortOrder == "3" || sortOrder == "5" || sortOrder == "7") { tinysort('#CMSModule_38813_items > li', { data: sortParams, order: 'desc' }); } else { tinysort('#CMSModule_38813_items > li', { data: sortParams }); } } String.format = function() { var s = arguments[0]; for (var i = 0; i < arguments.length - 1; i++) { var reg = new RegExp("\\{" + i + "\\}", "gm"); s = s.replace(reg, arguments[i + 1]); } return s; } function getSortField(sortOrder) { switch(sortOrder) { case "0": return 'sort-default'; case "1": return 'sort-sales'; case "2": // price asc case "3": // price desc return 'sort-price'; case "4": // name asc case "5": // name desc return 'sort-name'; case "7": return 'sort-reviews'; default: return 'sort-default'; } } /////////// INFINITE SCROLLING - END ///////////