summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-16 18:05:23 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-16 18:05:23 -0700
commit7ad5e9ee2c6c912932e8c38c992c9b1194c9107a (patch)
tree8331df4d4dc8478086f45cd363cb971781dbaf94
parentf6e8f34bef322e087be46274d6cc42490fd22ce3 (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.
-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() {