From: Jason Skomorowski Date: Tue, 22 Mar 2011 23:51:06 +0000 (+0000) Subject: Merge branch 'master' into ding1-theme X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1ce6a60df53c9b5e33a5328890bca1133b11ae8e;p=mkdru-moved-to-drupal.org.git Merge branch 'master' into ding1-theme Conflicts: mkdru.client.js mkdru.theme.js --- 1ce6a60df53c9b5e33a5328890bca1133b11ae8e diff --cc mkdru.theme.js index bcbc9cd,229c482..fa4964c --- a/mkdru.theme.js +++ b/mkdru.theme.js @@@ -162,24 -142,5 +162,24 @@@ Drupal.theme.prototype.mkdruFacet = fun }; Drupal.theme.prototype.mkdruFacetContainer = function (facetsCfg) { - var fs = []; - return ""; ++ var fs = []; + for (var fname in facetsCfg) { + facetsCfg[fname].originalKey = fname; + fs.push(facetsCfg[fname]); + } + fs.sort(function (a,b) { return a.orderWeight - b.orderWeight }); + var html = '
'; + for (var i=0; i'; + html += '
'; + html += '
'; + html += '
'; + html += '' + } + html += '
'; + return html; };