projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41cc47e
)
Emit fragment on other state-changes.
author
Mike Taylor
<mike@indexdata.com>
Fri, 1 May 2015 11:02:28 +0000
(12:02 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 1 May 2015 11:02:28 +0000
(12:02 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
603fb4b
..
aac101a
100644
(file)
--- 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.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++;
if (m_totalRecordCount - m_state.size * m_state.page > 0) {
m_paz.showNext();
m_state.page++;
+ that.warn("fragment: " + that.urlFragment());
}
};
that.pagerPrev = function() {
}
};
that.pagerPrev = function() {
- if (m_paz.showPrev() != false)
+ if (m_paz.showPrev() != false) {
m_state.page--;
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.fetchDetails = function(recId) {
that.info("fetchDetails() requesting record '" + recId + "'");
m_paz.record(recId);
+ that.warn("fragment: " + that.urlFragment());
};
};