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:
72516b5
)
Reorder some code.
author
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 16:35:35 +0000
(16:35 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Mon, 3 Mar 2014 16:35:35 +0000
(16:35 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
2484229
..
3881729
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-228,6
+228,10
@@
function team($, teamName) {
m_sort = mkws_config.sort_default;
debug("copied mkws_config.sort_default '" + mkws_config.sort_default + "' to m_sort");
m_sort = mkws_config.sort_default;
debug("copied mkws_config.sort_default '" + mkws_config.sort_default + "' to m_sort");
+ if (!isNaN(parseInt(mkws_config.perpage_default))) {
+ m_perpage = parseInt(mkws_config.perpage_default);
+ }
+
// protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp"
if (mkws_config.pazpar2_url.match(/^\/\//)) {
mkws_config.pazpar2_url = document.location.protocol + mkws_config.pazpar2_url;
// protocol independent link for pazpar2: "//mkws/sp" -> "https://mkws/sp"
if (mkws_config.pazpar2_url.match(/^\/\//)) {
mkws_config.pazpar2_url = document.location.protocol + mkws_config.pazpar2_url;
@@
-251,10
+255,6
@@
function team($, teamName) {
"showResponseType": '', // or "json" (for debugging?)
"onrecord": onRecord });
"showResponseType": '', // or "json" (for debugging?)
"onrecord": onRecord });
- if (!isNaN(parseInt(mkws_config.perpage_default))) {
- m_perpage = parseInt(mkws_config.perpage_default);
- }
-
// Finds the node of the specified class within the current team
// Multiple OR-clauses separated by commas are handled
// Finds the node of the specified class within the current team
// Multiple OR-clauses separated by commas are handled