mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						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();
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user