Make renderDetails() available as team member-function.
authorMike Taylor <mike@indexdata.com>
Thu, 20 Mar 2014 09:49:18 +0000 (09:49 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 20 Mar 2014 09:49:18 +0000 (09:49 +0000)
tools/htdocs/mkws.js

index c506ccf..0ff94ff 100644 (file)
@@ -360,7 +360,7 @@ function widget($, team, type, node) {
                // from the team object into this widget.
                if (hit.recid == team.currentRecordId()) {
                    if (team.currentRecordData())
-                       html.push(renderDetails(team.currentRecordData()));
+                       html.push(team.renderDetails(team.currentRecordData()));
                }
            }
            $(node).html(html.join(''));
@@ -1074,6 +1074,7 @@ function team($, teamName) {
        var details = template(data);
        return '<div class="details" id="mkwsDet_' + m_teamName + '_' + data.recid + '">' + details + '</div>';
     }
+    that.renderDetails = renderDetails;
 
 
     function loadTemplate(name)