diff options
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r-- | lib/gallery.common.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index eea0fada..317a73e7 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -80,7 +80,7 @@ return this.id.match(/gPhotoId-\d+/); }); return photo; - } + }; /** * Get the sum of an element's height, margin-top, and margin-bottom @@ -104,7 +104,11 @@ $(this).removeClass("ui-state-hover"); } ); - } + }; + // 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}); + }; })(jQuery); |