if (firstClkbl > 1) output.morePrev = true;
if (lastClkbl < pages) output.moreNext = true;
- if (currentPage > 1) output.prevClick = "mkws.pagerPrev(\'" + teamName + "\');";
+ if (currentPage > 1) output.prevHref = '#' + that.team.urlFragment({ page: currentPage-1 });
output.pages = [];
for(var i = firstClkbl; i <= lastClkbl; i++) {
var o = {};
o.number = i;
if (i !== currentPage) {
- o.click = "mkws.showPage(\'" + teamName + "\', " + i + ");";
+ o.href = '#' + that.team.urlFragment({ page: i });
}
output.pages.push(o);
}
- if (pages - currentPage > 0) output.nextClick = "mkws.pagerNext(\'" + teamName + "\')";
+ if (pages - currentPage > 0) output.nextHref = '#' + that.team.urlFragment({ page: currentPage+1 });
var template = that.team.loadTemplate(that.config.template || "pager");
that.node.html(template(output));
var m_dataToRedraw = null;
function refreshRecordData() {
+ that.node.stop();
that.node.css('opacity', 1);
if (m_dataToRedraw) {
}
var urls = hit['md-electronic-url'];
- that.warn("urls = " + mkws.$.toJSON(urls));
var bestLink = null;
var otherLinks = [];
for (var j = 0; j < urls.length; j++) {
var url = urls[j];
- that.warn("url #" + (j+1) + " = " + url);
- if (!bestLink && url.match(/^(https?:)?\/\//)) {
- mkws.debug("'" + url + "' *is* a URL");
+ if (!url.match(/^(https?:)?\/\//)) {
+ that.warn("link '" + url + "' is not a valid URL");
+ } else if (!bestLink) {
bestLink = url;
- } else if (bestLink) {
- mkws.debug("'" + url + "' not tested");
- otherLinks.push(url);
} else {
- mkws.debug("'" + url + "' is not a URL");
otherLinks.push(url);
}
}
var that = this;
this.node.change(function() {
- that.team.set_sortOrder(that.node.val());
- if (that.team.submitted()) {
- that.team.reShow();
- }
+ window.location.href = '#' + that.team.urlFragment({ sort: that.node.val() });
return false;
});
});
var that = this;
this.node.change(function() {
- that.team.set_perpage(that.node.val());
- if (that.team.submitted()) {
- that.team.reShow();
- }
+ window.location.href = '#' + that.team.urlFragment({ size: that.node.val() });
return false;
});
});