X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=ac43dcd67e6469be6327f3ca23b45c0001b9a4fc;hp=0ee99f3c8973cc11bd246a53e3179fe1cf5073e4;hb=a44612f84f87a788c66a35b361deb62e6bc04c1c;hpb=98a52492cf54507cc0bc6aa42800e2fc7ac386eb diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 0ee99f3..ac43dcd 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -130,8 +130,9 @@ mkws.registerWidgetType('records', function() { } } var template = team.loadTemplate(that.config.template || "records"); - var targs = $.extend({}, {"hits": data.hits}, that.config.template_vars); - that.node.html(template(targs)); + var summaryPartial = team.loadTemplate("summary"); + var tdata = $.extend({}, {"hits": data.hits}, that.config.template_vars); + that.node.html(template(tdata, {"partials":{"summary":summaryPartial}})); }); that.autosearch();