mirror of https://github.com/zulip/zulip.git
lightbox.js: Remove computed access of exports.
This wouldn’t work after migration to an ES6 module. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
9368c33098
commit
363956428a
|
@ -275,8 +275,10 @@ exports.initialize = function () {
|
|||
$("#lightbox_overlay").on("click", ".center .arrow", function () {
|
||||
var direction = $(this).attr("data-direction");
|
||||
|
||||
if (/^(next|prev)$/.test(direction)) {
|
||||
lightbox[direction]();
|
||||
if (direction === 'next') {
|
||||
lightbox.next();
|
||||
} else if (direction === 'prev') {
|
||||
lightbox.prev();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue