From: Mike Taylor Date: Tue, 18 Mar 2014 14:07:38 +0000 (+0000) Subject: Rename m_totalRec to m_totalRecordCount X-Git-Tag: 1.0.0~1309^2~4 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=16f6454ab6abbd986130d0327a32893a0b776e86 Rename m_totalRec to m_totalRecordCount --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 50eec65..ffac9fc 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -232,7 +232,7 @@ function team($, teamName) { var m_sortOrder; // will be set below var m_perpage; // will be set below var m_filters = []; - var m_totalRec = 0; + var m_totalRecordCount = 0; var m_curPage = 1; var m_curDetRecId = ''; var m_curDetRecData = null; @@ -335,7 +335,7 @@ function team($, teamName) { function onShow(data, teamName) { debug("show"); - m_totalRec = data.merged; + m_totalRecordCount = data.merged; var pager = findnode(".mkwsPager"); if (pager.length) { @@ -420,7 +420,7 @@ function team($, teamName) { //client indexes pages from 1 but pz2 from 0 var onsides = 6; - var pages = Math.ceil(m_totalRec / m_perpage); + var pages = Math.ceil(m_totalRecordCount / m_perpage); var firstClkbl = (m_curPage - onsides > 0) ? m_curPage - onsides @@ -535,7 +535,7 @@ function team($, teamName) { function resetPage() { m_curPage = 1; - m_totalRec = 0; + m_totalRecordCount = 0; } @@ -684,7 +684,7 @@ function team($, teamName) { // simple paging functions that.pagerNext = function () { - if (m_totalRec - m_perpage*m_curPage > 0) { + if (m_totalRecordCount - m_perpage*m_curPage > 0) { m_paz.showNext(); m_curPage++; }