diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.common.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 0bd14915..eb57c86c 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -88,8 +88,8 @@ * @return object */ $.fn.gallery_get_photo = function() { - var photo = $(this).find("img").filter(function() { - return this.id.match(/g-photo-id-\d+/); + var photo = $(this).find("img,object").filter(function() { + return this.id.match(/g-(photo|movie)-id-\d+/); }); return photo; }; |