summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormamouneyya <mamoun.diraneyya@gmail.com>2010-09-07 08:41:25 +0300
committermamouneyya <mamoun.diraneyya@gmail.com>2010-09-07 08:41:25 +0300
commitba950bec0c84a1467aa2545ca815d5af7b0b002b (patch)
tree307cdacf0ece60ae9b2db94ad43fcf00d769dcfc /lib
parent9572c664d2bfff0877d4f2062eb0ef6665a109cf (diff)
parent7c80bc0c3db1ca20ce424a36a05f1337de9e1e31 (diff)
Merge remote branch 'gallery3/master'
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index a8b237bf..69452f39 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -121,6 +121,9 @@
// Ajax handler for replacing an image, used in Ajax thumbnail rotation
$.gallery_replace_image = function(data, thumb) {
$(thumb).attr({src: data.src, width: data.width, height: data.height});
+ if (typeof gallery_image_replaced_hook == 'function') {
+ gallery_image_replaced_hook(data, thumb);
+ }
};
// Initialize context menus