From: Mike Taylor Date: Fri, 25 Apr 2014 16:04:34 +0000 (+0100) Subject: The "Record" widget publishes a "record" widget with the data from X-Git-Tag: 1.0.0~845 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=af9922f0f1fec22c171123a8b0962dd84318f29c;hp=f72d7b0b24b73b8468e55906ea31ca33344ebb4c;p=mkws-moved-to-github.git The "Record" widget publishes a "record" widget with the data from each individual record that it's about to render. Useful mostly for logging. --- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index cd9e45d..517850b 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -237,6 +237,7 @@ mkws.registerWidgetType('Records', function() { var html = []; for (var i = 0; i < data.hits.length; i++) { var hit = data.hits[i]; + that.team.queue("record").publish(hit); var divId = team.recordElementId(hit.recid[0]); html.push('
', renderSummary(hit), '
'); // ### At some point, we may be able to move the