From 05e195768393c50779514624d27fbf8942a9955e Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 20 Mar 2014 09:49:18 +0000 Subject: [PATCH] Make renderDetails() available as team member-function. --- tools/htdocs/mkws.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index c506ccf..0ff94ff 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -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 '
' + details + '
'; } + that.renderDetails = renderDetails; function loadTemplate(name) -- 1.7.10.4