X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-team.js;h=c529c1e99a3e6cb056762e19d620b5b19502638a;hb=104798806924fcda8fb2d1ceda123cf698dc8247;hp=39941d6f95666b09a8690f28f9d36512e5e836e8;hpb=ef71b6a3c51431e07c094bda38ccc5211c22e830;p=mkws-moved-to-github.git diff --git a/src/mkws-team.js b/src/mkws-team.js index 39941d6..c529c1e 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -28,6 +28,8 @@ function team($, teamName) { var m_paz; // will be initialised below var m_template = {}; + + // Accessor methods for individual widgets: readers that.name = function() { return m_teamName; } that.submitted = function() { return m_submitted; } that.perpage = function() { return m_perpage; } @@ -37,11 +39,12 @@ function team($, teamName) { that.currentRecordData = function() { return m_currentRecordData; } that.filters = function() { return m_filters; } + // Accessor methods for individual widgets: writers that.set_sortOrder = function(val) { m_sortOrder = val }; that.set_perpage = function(val) { m_perpage = val }; - var log = function (s) { + function log(s) { var now = $.now(); var timestamp = ((now - m_logTime.start)/1000).toFixed(3) + " (+" + ((now - m_logTime.last)/1000).toFixed(3) + ") " m_logTime.last = now; @@ -304,7 +307,6 @@ function team($, teamName) { } - that.showPage = function (pageNum) { m_currentPage = pageNum; @@ -312,7 +314,6 @@ function team($, teamName) { } - // simple paging functions that.pagerNext = function () { if (m_totalRecordCount - m_perpage*m_currentPage > 0) { m_paz.showNext();