diff --git a/js/pear.js b/js/pear.js index 25cf881a..86cd07b0 100644 --- a/js/pear.js +++ b/js/pear.js @@ -130,11 +130,13 @@ function getViewMode() { } function updateHash() { - var hash, img = ""; + var hash, img = "", val, i; if (currentImg !== 0) { img = "img=" + currentImg; } hash = "#" + img + getViewMode() + "&bgcolor=" + bgcolor; + if($('#paginator')) { $('#paginator a').each(function () { val = $(this).attr("href"); i = val.indexOf("#"); if (i !== -1) { val = val.substr(0, i) } $(this).attr("href", val + hash); }); + } window.location.hash = hash; } diff --git a/views/album.html.php b/views/album.html.php index 27e22df8..3140be79 100644 --- a/views/album.html.php +++ b/views/album.html.php @@ -2,21 +2,21 @@ - +
-
-
+ + album_bottom() ?> paginator() ?> - - diff --git a/views/paginator.html.php b/views/paginator.html.php index a0595f4f..1375c983 100644 --- a/views/paginator.html.php +++ b/views/paginator.html.php @@ -30,15 +30,17 @@
  • - "> + + - "> + +   -
  • +
  • @@ -60,15 +62,15 @@
  • + + + + - "> + + - - "> - - -