From ccbb5a00e955ae3afa168d7a6289025c8e3eb693 Mon Sep 17 00:00:00 2001 From: Nicholos Merrill Date: Sat, 19 Jan 2019 02:52:02 -0700 Subject: [PATCH] Changed backdrop initialization module to load on page show instead of before page show so that home page does continues to load backdrop image even after changing page. Also added my name to contributors. --- CONTRIBUTORS.md | 1 + src/scripts/autobackdrops.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 1d556cfbc1..3773562e54 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -16,6 +16,7 @@ - [grafixeyehero](https://github.com/grafixeyehero) - [Drago96](https://github.com/drago-96) - [ViXXoR](https://github.com/ViXXoR) + - [nkmerrill] (https://github.com/nkmerrill) # Emby Contributors diff --git a/src/scripts/autobackdrops.js b/src/scripts/autobackdrops.js index 45f9ec044d..8cce154a19 100644 --- a/src/scripts/autobackdrops.js +++ b/src/scripts/autobackdrops.js @@ -39,7 +39,7 @@ define(["backdrop", "userSettings", "libraryMenu"], function(backdrop, userSetti }) } var cache = {}; - pageClassOn("pagebeforeshow", "page", function() { + pageClassOn("pageshow", "page", function() { var page = this; if (!page.classList.contains("selfBackdropPage")) if (page.classList.contains("backdropPage"))