X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=c1a58ef43e8d9508d44b2257d50a5e584cb05cc7;hb=79df7635c4cf890fdb06683a824d212b64a4a9bf;hp=fae978de0efd194924021de9dd0f801eb0459a32;hpb=6474ef660b2366371635ac248d7fd0adc0a04265;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index fae978d..c1a58ef 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -128,7 +128,7 @@ mkws.registerWidgetType('records', function() { } } var template = team.loadTemplate(that.config.template || "records"); - var summaryPartial = team.loadTemplate("summary"); + var summaryPartial = team.loadTemplate(that.config['summary-template'] || "summary"); var tdata = $.extend({}, {"hits": data.hits}, that.config.template_vars); that.node.html(template(tdata, {"partials":{"summary":summaryPartial}})); }); @@ -220,7 +220,6 @@ mkws.registerWidgetType('switch', function() { mkws.registerWidgetType('search', function() { var output = {}; output.team = this.team.name(); - output.queryWidth = this.config.query_width; var template = this.team.loadTemplate(this.config.template || "search"); this.node.html(template(output)); });