From: Mike Taylor Date: Thu, 23 Oct 2014 14:35:17 +0000 (+0100) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkws X-Git-Tag: 1.0.0~126 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f6ab13587b58fba947e4257e7ff1091bbaffcb64;hp=-c Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkws --- f6ab13587b58fba947e4257e7ff1091bbaffcb64 diff --combined doc/mkws-manual.markdown index 3bb22cd,a52eeb3..2060dda --- a/doc/mkws-manual.markdown +++ b/doc/mkws-manual.markdown @@@ -65,10 -65,8 +65,10 @@@ The following i -
-
+
+ +
+
@@@ -214,7 -212,7 +214,7 @@@ the system. For details of Handlebars t documentation](http://handlebarsjs.com/). The templates used by the core widgets can be viewed in [our git - repository](http://git.indexdata.com/?p=mkws.git;a=tree;f=src/mkws.templates;). + repository](http://git.indexdata.com/?p=mkws.git;a=tree;f=src/templates;). Parameters are documented in a comment at the top of each template so you can see what's going where. If all you want to do is add a CSS class to something or change a `span` to a `div` it's easy to just copy the existing diff --combined src/mkws-widget-record.js index 2f913c6,ba3fce2..044d574 --- a/src/mkws-widget-record.js +++ b/src/mkws-widget-record.js @@@ -1,10 -1,10 +1,10 @@@ -// A widget for one record +// A widget for a record-list of a single record mkws.registerWidgetType('record', function() { if (!this.config.maxrecs) this.config.maxrecs = 1; var that = this; var team = this.team; team.queue("records").subscribe(function(data) { - var template = team.loadTemplate(that.config.template || "Record"); + var template = team.loadTemplate(that.config.template || "details"); var targs = mkws.$.extend({}, data.hits[0], that.config.template_vars); that.node.html(template(targs)); });