changed git call from https to git readonly
[atutor.git] / mods / photo_album / fluid / component-templates / js / fluid / Lightbox.js
1 var fluid = fluid || {};\r
2 \r
3 fluid.Lightbox = {\r
4         addThumbnailActivateHandler: function (lightbox) {\r
5                 var lightboxContainerElement = lightbox.domNode;\r
6                 var enterKeyHandler = function (evt) {\r
7                         if (evt.which == fluid.keys.ENTER) {\r
8                                 var thumbnailAnchors = jQuery ("a", lightbox.activeItem);\r
9                                 document.location = thumbnailAnchors.attr ('href');\r
10                         }\r
11                 };\r
12                 \r
13                 jQuery (lightboxContainerElement).keypress (enterKeyHandler);\r
14         }\r
15 };