From: Mike Taylor Date: Thu, 20 Mar 2014 09:49:18 +0000 (+0000) Subject: Make renderDetails() available as team member-function. X-Git-Tag: 1.0.0~1296 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=05e195768393c50779514624d27fbf8942a9955e Make renderDetails() available as team member-function. --- 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)