From: Mike Taylor Date: Tue, 29 Apr 2014 11:19:26 +0000 (+0100) Subject: Remove mkwsRecords magic, now in the widget. X-Git-Tag: 1.0.0~816 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=5507ade1612dfb2ed0b09f1cea0091265621eaa8 Remove mkwsRecords magic, now in the widget. Likewise for creating the individual Facet widgets within Termlists. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 8f4235e..6010abb 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -356,45 +356,6 @@ function team($, teamName) { if (m_config.show_lang) mkwsHtmlLang(); - log("HTML records"); - // If the team has a .mkwsResults, populate it in the usual - // way. If not, assume that it's a smarter application that - // defines its own subcomponents, some or all of the - // following: - // .mkwsTermlists - // .mkwsRanking - // .mkwsPager - // .mkwsNavi - // .mkwsRecords - findnode(".mkwsResults").html('\ -\ - \ - \ - \ - \ - \ - \ - \ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ -
'); - - var acc = []; - var facets = m_config.facets; - acc.push('
' + M('Termlists') + '
'); - for (var i = 0; i < facets.length; i++) { - acc.push('
'); - acc.push('
'); - } - findnode(".mkwsTermlists").html(acc.join('')); - var ranking_data = '
'; if (m_config.show_sort) { ranking_data += M('Sort by') + ' ' + mkwsHtmlSort() + ' '; @@ -405,11 +366,6 @@ function team($, teamName) { ranking_data += '
'; findnode(".mkwsRanking").html(ranking_data); - // on first page, hide the termlist - $(document).ready(function() { - var t = widgetNode("Termlists"); - if (t) t.hide(); - }); var container = findnode(".mkwsMOTDContainer"); if (container.length) { // Move the MOTD from the provided element down into the container