Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

better preview lightbox check on app details (bug 1166273) #1237

Merged
merged 1 commit into from
May 21, 2015

Conversation

spasovski
Copy link
Contributor

On desktop app details...don't open lightbox but play video.
On mobile app details...always open lightbox.
On listing pages...always open lightbox.

// Don't show on desktop detail since it'd show the previews at
// the same size.
if (!isDesktopDetail()) {
var isVideo = e.target.nodeName === 'VIDEO';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would probably move all the isVideo logic into one block if it makes sense too...:

if (!isVideo || !isDesktopDetail() && isVideo) {
e.preventDefault();
}

@ngokevin
Copy link
Contributor

r+

spasovski added a commit that referenced this pull request May 21, 2015
better preview lightbox check on app details (bug 1166273)
@spasovski spasovski merged commit 6c72f4e into mozilla:master May 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants