Merge remote branch 'origin/master' into wosch
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 10 Jul 2013 15:28:39 +0000 (15:28 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 10 Jul 2013 15:28:39 +0000 (15:28 +0000)
tools/htdocs/mkws.js
tools/htdocs/mkwsStyle.css

index 4004ce2..c5f7d48 100644 (file)
@@ -204,6 +204,7 @@ function add_single_facet(acc, caption, data, max, cclIndex) {
     acc.push('<div class="facet">');
     acc.push('<div class="termtitle">' + M(caption) + '</div>');
     for (var i = 0; i < data.length && i < max; i++ ) {
+       acc.push('<div class="term">');
         acc.push('<a href="#" ');
        var action;
        if (!cclIndex) {
@@ -214,7 +215,8 @@ function add_single_facet(acc, caption, data, max, cclIndex) {
            action = 'limitQuery(\'' + cclIndex + '\', this.firstChild.nodeValue)';
        }
        acc.push('onclick="' + action + ';return false;">' + data[i].name + '</a>'
-                + '<span> (' + data[i].freq + ')</span><br/>');
+                + ' <span>' + data[i].freq + '</span>');
+       acc.push('</div>');
     }
     acc.push('</div>');
 }
index b807ed3..b9887d9 100644 (file)
     -webkit-border-top-right-radius: 10px;
 }
 
+#mkwsTermlists div.facet div.term {
+    clear: both;
+}
+
+#mkwsTermlists div.facet div.term span {
+    float: right;
+}
+
 #mkwsTermlists div.termtitle {
     font-weight: bold;
 }