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 @@ /* Placeholder for infromation in mosaic view. */ ?> -
-
- |
@@ -46,7 +46,7 @@ $(function() {
if ($child->is_movie()): ?>
endif ?>
-// Begin skimming
+// Begin skimming
if($child->is_album()):
$granchildren = $child->viewable()->children();
$offset = 0;
@@ -58,8 +58,8 @@ if($child->is_album()):
endif ?>
$offset+=$step;
-endforeach;
-endif;
+endforeach;
+endif;
// End skimming // ?>
= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
= html::purify(text::limit_chars($child->title, 20)) ?> @@ -96,8 +96,8 @@ endif; endif; ?> |