Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/mkws
authorMike Taylor <mike@indexdata.com>
Thu, 23 Oct 2014 14:35:17 +0000 (15:35 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 23 Oct 2014 14:35:17 +0000 (15:35 +0100)
1  2 
doc/mkws-manual.markdown
src/mkws-widget-record.js

diff --combined doc/mkws-manual.markdown
@@@ -65,10 -65,8 +65,10 @@@ The following i
          <link rel="stylesheet" href="//mkws.indexdata.com/mkws.css" />
        </head>
        <body>
 -        <div class="mkwsSearch"></div>
 -        <div class="mkwsResults"></div>
 +        <div class="mkws-progress"></div>
 +        <div class="mkws-search"></div>
 +        <div class="mkws-results"></div>
 +        <div class="mkws-stat"></div>
        </body>
      </html>
  
@@@ -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
@@@ -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));
    });