X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;ds=inline;f=www%2Fjs%2Fblerg.js;h=28f0849b0355c84494d7b1c87b2124401793c8ea;hb=4182838777472d5416bda381f784881e7948ecce;hp=ddc604a651427415dbeb2e9bebfdd53bd3520848;hpb=778d18a1d105cf441c18e43a351c056e5d029b44;p=blerg.git diff --git a/www/js/blerg.js b/www/js/blerg.js index ddc604a..28f0849 100644 --- 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) { @@ -718,6 +720,8 @@ function hashSwitch() { 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) { @@ -727,6 +731,8 @@ function hashSwitch() { if (m[3]) { var r = parseInt(m[3]); currentPager.showPageAt(r); + } else { + currentPager.showPageAt(currentPager.itemCount - 1); } } else { location.href = baseURL;