From: Jakub Skoczen Date: Mon, 7 Mar 2011 11:58:36 +0000 (+0100) Subject: Add column layout for the facets. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;ds=inline;p=mkdruding1.git Add column layout for the facets. --- diff --git a/css/mkdruding1.css b/css/mkdruding1.css index 41ad8a5..682d69e 100644 --- a/css/mkdruding1.css +++ b/css/mkdruding1.css @@ -2,6 +2,11 @@ a.cross:hover { text-decoration: line-through; } +.mkdru-facets-table { + table-layout: fixed; + width: 700px; +} + .mkdru-result-description { font-size: 0.8em; } diff --git a/mkdruding1.js b/mkdruding1.js index 8321feb..c1da0eb 100644 --- a/mkdruding1.js +++ b/mkdruding1.js @@ -44,18 +44,18 @@ Drupal.theme.mkdruFacetContainer = function (facetsCfg) { fs.push(facetsCfg[fname]); } fs.sort(function (a,b) { return a.orderWeight - b.orderWeight }); - var html = '

Facet browser

'; + var html = '
'; for (var i=0; i'; html += '
'; html += '
'; html += '
'; - html += '' + html += '' } - html += '
'; + html += '
'; return html; };