summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-31 18:13:25 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-31 18:13:42 -0800
commit25f936e1edc8c47a789b423b9cadbe071a65256d (patch)
treeb1298f253235fc040ef845c677dac62ad059ea31 /lib
parent20bd09ff004816ae152a2f890a24dc5e85741fac (diff)
Show context menus for movie items. Fix for ticket #960.
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.common.js4
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;
};