From b615b65c020b96643f2c3d4900a73cc4c982e0ce Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 11 Nov 2014 09:41:38 +0000 Subject: [PATCH] The "records" widget supports the new optional "summary-template" setting, which tells it to use a template other than the default "template" when rendering summary records. For example,
will render all records in detailed view. --- src/mkws-widget-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 70c45e2..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}})); }); -- 1.7.10.4