fs.push(facetsCfg[fname]);
}
fs.sort(function (a,b) { return a.orderWeight - b.orderWeight });
- var html = '<h2>Facet browser</h2><div class="content">';
+ var html = '<div class="content"><table class="mkdru-facets-table"><tr>';
for (var i=0; i<fs.length; i++) {
var f = fs[i];
- html += '<fieldset class="form-wrapper">'
+ html += '<td><fieldset class="form-wrapper">'
html += '<legend><span class="fieldset-legend">'+f.displayName
+'</span></legend>';
html += '<div class="fieldset-wrapper">';
html += '<div class="mkdru-facet-'+f.originalKey+'"/>';
html += '</div>';
- html += '</fieldset>'
+ html += '</fieldset></td>'
}
- html += '</div>';
+ html += '</tr></table></div>';
return html;
};