Summary template name is taken from that.config.template if provided
[mkws-moved-to-github.git] / src / mkws-widgets.js
index 312bfab..0f58002 100644 (file)
@@ -304,7 +304,7 @@ mkws.registerWidgetType('Records', function() {
        $(that.node).html(html.join(''));
 
        function renderSummary(hit) {
-           var template = team.loadTemplate("Summary");
+           var template = team.loadTemplate(that.config.template || "Summary");
            hit._id = team.recordElementId(hit.recid[0]);
            hit._onclick = "mkws.showDetails('" + team.name() + "', '" + hit.recid[0] + "');return false;"
            return template(hit);