X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-widget-main.js;h=0fe9d90afbaf3107785fb0bbd8f246d9711f6c67;hb=5fce8c968981efbd7fc063faa833f7d8093dd630;hp=0ee99f3c8973cc11bd246a53e3179fe1cf5073e4;hpb=36721667730b5d8aae5b6df304f69d96f2c1d21d;p=mkws-moved-to-github.git diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 0ee99f3..0fe9d90 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -22,6 +22,7 @@ mkws.registerWidgetType('targets', function() { cur.id = data[i].id; cur.hits = data[i].hits; cur.diagnostic = data[i].diagnostic; + cur.message = data[i].message; cur.records = data[i].records; cur.state = data[i].state; cleandata.push(cur); @@ -55,7 +56,7 @@ mkws.registerWidgetType('pager', function() { output.found = data.total; //client indexes pages from 1 but pz2 from 0 - var onsides = 6; + var onsides = 5; var pages = Math.ceil(that.team.totalRecordCount() / that.team.perpage()); var currentPage = that.team.currentPage(); @@ -130,8 +131,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();