Permalink
Browse files

Merge pull request #7328 from ttaubert/gallery/bug-826394-videos-in-g…

…allery-picker

Bug 826394 - Don't show videos in gallery picker
  • Loading branch information...
2 parents f80478e + 3ee6d9d commit 550e4775249ac74cf983c4a1596bdae4219f27b7 @daleharvey daleharvey committed Jan 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 apps/gallery/js/gallery.js
@@ -114,6 +114,8 @@ var visibilityMonitor;
// The localized event is the main entry point for the app.
// We don't do anything until we receive it.
window.addEventListener('localized', function showBody() {
+ window.removeEventListener('localized', showBody);
+
// Set the 'lang' and 'dir' attributes to <html> when the page is translated
document.documentElement.lang = navigator.mozL10n.language.code;
document.documentElement.dir = navigator.mozL10n.language.direction;

0 comments on commit 550e477

Please sign in to comment.