projects
/
blerg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
778d18a
)
Fix page switching for tags/feeds
author
Chip Black
<bytex64@bytex64.net>
Thu, 3 Mar 2011 10:32:29 +0000
(
02:32
-0800)
committer
Chip Black
<bytex64@bytex64.net>
Thu, 3 Mar 2011 10:32:29 +0000
(
02:32
-0800)
www/js/blerg.js
patch
|
blob
|
history
diff --git
a/www/js/blerg.js
b/www/js/blerg.js
index
ddc604a
..
28f0849
100644
(file)
--- a/
www/js/blerg.js
+++ b/
www/js/blerg.js
@@
-209,6
+209,8
@@
Pager.prototype.showRecord = function(r) {
}
}
}
}
+Pager.prototype.loadItems = function(from, to, continuation) { }
+
// Object to render user pages
function User(username) {
// Object to render user pages
function User(username) {
@@
-718,6
+720,8
@@
function hashSwitch() {
if (m[3]) {
var r = parseInt(m[3]);
currentPager.showPageAt(r);
if (m[3]) {
var r = parseInt(m[3]);
currentPager.showPageAt(r);
+ } else {
+ currentPager.showPageAt(currentPager.itemCount - 1);
}
} else if (m = location.hash.match(/^#\/feed(?:\/p(\d+))?$/)) {
if (loginStatus.loggedIn) {
}
} else if (m = location.hash.match(/^#\/feed(?:\/p(\d+))?$/)) {
if (loginStatus.loggedIn) {
@@
-727,6
+731,8
@@
function hashSwitch() {
if (m[3]) {
var r = parseInt(m[3]);
currentPager.showPageAt(r);
if (m[3]) {
var r = parseInt(m[3]);
currentPager.showPageAt(r);
+ } else {
+ currentPager.showPageAt(currentPager.itemCount - 1);
}
} else {
location.href = baseURL;
}
} else {
location.href = baseURL;