From: Wolfram Schneider Date: Thu, 30 Jan 2014 13:42:50 +0000 (+0000) Subject: Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws X-Git-Tag: 1.0.0~1571 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=43c474d7e781c388cc895f29bc0711fa6286e7e2;hp=ca6f73053a08da415a02b697ae8bcfd5bf676c3a;p=mkws-moved-to-github.git Merge branch 'master' of ssh://git.indexdata.com:222/home/git/private/mkws --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 98fc11c..d4e8166 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -230,7 +230,6 @@ function _make_mkws_team($, teamName) { "usesessions" : mkws_config.use_service_proxy ? false : true, "showResponseType": '', // or "json" (for debugging?) "onrecord": my_onrecord }); - that.m_paz = m_paz; // For access from non-member functions like mkws.showDetails if (!isNaN(parseInt(mkws_config.perpage_default))) { m_recPerPage = parseInt(mkws_config.perpage_default); @@ -730,7 +729,7 @@ function _make_mkws_team($, teamName) { // detailed record drawing - mkws.showDetails = function (prefixRecId, tname) { + that.showDetails = function (prefixRecId) { var recId = prefixRecId.replace('mkwsRec_', ''); var oldRecId = m_curDetRecId; m_curDetRecId = recId; @@ -748,9 +747,7 @@ function _make_mkws_team($, teamName) { return; } // request the record - var team = mkws.teams[tname]; - if (!team) alert("no team '" + tname + "'"); - team.m_paz.record(recId); + m_paz.record(recId); } @@ -1351,6 +1348,11 @@ function _mkws_jquery_plugin ($) { } + mkws.showDetails = function (prefixRecId, tname) { + mkws.teams[tname].showDetails(prefixRecId); + } + + function default_mkws_config() { /* default mkws config */ var config_default = {