summaryrefslogtreecommitdiff
path: root/themes/default/views/photo.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-10 23:05:05 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-10 23:07:50 -0700
commitcbba45fffc7368280e9529f55e108d0080175b6a (patch)
treeff21dad0410f80e92084815315b75fda677f639d /themes/default/views/photo.html.php
parent790545ac97358dd92ce954e617d5255e6644c1a7 (diff)
Create the concept of an "ajax link" and use it for thumbnail rotation
and album covers in the context menu. Notes: - This requires context_menu() to have a CSS selector that refers to the <img> that we're operating on, otherwise we don't know how to find the thumbnail, etc. - Create Menu_Element_Ajax_Link which has an ajax_handler attribute that contains a snippet of JS that we're going to run when the ajax call returns. - Add $.gallery_replace_image in gallery.common.js - Add lib/gallery.ajax.js which can be used to ajaxify any link, and have ui.init.js in the themes call that on all .gAjaxLink elements.
Diffstat (limited to 'themes/default/views/photo.html.php')
-rw-r--r--themes/default/views/photo.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php
index 453417dc..fa5def47 100644
--- a/themes/default/views/photo.html.php
+++ b/themes/default/views/photo.html.php
@@ -47,7 +47,7 @@
</a>
<? endif ?>
<?= $theme->resize_bottom($item) ?>
- <?= $theme->context_menu($item) ?>
+ <?= $theme->context_menu($item, "#gPhotoId-{$item->id}") ?>
</div>
<div id="gInfo">