From: Mike Taylor Date: Fri, 1 May 2015 11:02:28 +0000 (+0100) Subject: Emit fragment on other state-changes. X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=d7a665a570b5f836ccc509c872234743dd4005aa;p=mkws-moved-to-github.git Emit fragment on other state-changes. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 603fb4b..aac101a 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -299,6 +299,7 @@ mkws.makeTeam = function($, teamName) { that.showPage = function(pageNum) { m_state.page = pageNum; m_paz.showPage(m_state.page - 1); + that.warn("fragment: " + that.urlFragment()); }; @@ -306,13 +307,16 @@ mkws.makeTeam = function($, teamName) { if (m_totalRecordCount - m_state.size * m_state.page > 0) { m_paz.showNext(); m_state.page++; + that.warn("fragment: " + that.urlFragment()); } }; that.pagerPrev = function() { - if (m_paz.showPrev() != false) + if (m_paz.showPrev() != false) { m_state.page--; + that.warn("fragment: " + that.urlFragment()); + } }; @@ -387,6 +391,7 @@ mkws.makeTeam = function($, teamName) { that.fetchDetails = function(recId) { that.info("fetchDetails() requesting record '" + recId + "'"); m_paz.record(recId); + that.warn("fragment: " + that.urlFragment()); };