summaryrefslogtreecommitdiff
path: root/themes/wind
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-09 21:04:18 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-09 21:04:18 -0700
commit32878ebfdce943271824891639ab0384053bbadd (patch)
tree5c2df67fa6aa8abbaf3f7facd6de3404ae9a4ea4 /themes/wind
parent36f3a0387ddc484ebe867cf284aaf05f6ce6e5e1 (diff)
Replace the hook function hack I introduced in
cbba45fffc7368280e9529f55e108d0080175b6a with a namespaced jQuery custom event. This is way more portable.
Diffstat (limited to 'themes/wind')
-rw-r--r--themes/wind/views/photo.html.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php
index cb830e23..b42ab987 100644
--- a/themes/wind/views/photo.html.php
+++ b/themes/wind/views/photo.html.php
@@ -12,7 +12,7 @@
// After the image is rotated or replaced we have to reload the image dimensions
// so that the full size view isn't distorted.
- gallery_image_replaced_hook = function(data, thumb) {
+ $("#g-photo").bind("gallery.change", function() {
$.ajax({
url: "<?= url::site("items/dimensions/" . $theme->item()->id) ?>",
dataType: "json",
@@ -20,7 +20,7 @@
full_dims = data.full;
}
});
- }
+ });
});
</script>
<? endif ?>