summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-17 09:05:23 +0800
committer <unostar@danalan.info>2009-06-17 13:51:23 +0800
commitd5e3d60fcf6a74a4fec50fee5ae6874ce2017975 (patch)
tree1046c9dad1e4c2854c8f4f9f06523a63535580d1
parent15f3d58b0275c1e59d380730e01c061747e95067 (diff)
Move the show_full_size code into gallery/lib so that it's generally
available to themes that want to use it. It should probably eventually be generalized away from just being for full sized images, but it's a step in the right direction. Fixes ticket #427. Signed-off-by: <unostar@danalan.info>
-rw-r--r--lib/gallery.show_full_size.js (renamed from themes/default/js/fullsize.js)0
-rw-r--r--themes/default/views/photo.html.php3
2 files changed, 2 insertions, 1 deletions
diff --git a/themes/default/js/fullsize.js b/lib/gallery.show_full_size.js
index b2895c23..b2895c23 100644
--- a/themes/default/js/fullsize.js
+++ b/lib/gallery.show_full_size.js
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index ddea75bc..1c3b81a7 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -1,7 +1,8 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if (access::can("view_full", $theme->item())): ?>
-<script src="<?= url::file("themes/default/js/fullsize.js") ?>" type="text/javascript"></script>
+<!-- Use javascript to show the full size as an overlay on the current page -->
+<script src="<?= url::file("lib/gallery.show_full_size.js") ?>" type="text/javascript"></script>
<script>
$(document).ready(function() {
$(".gFullSizeLink").click(function() {