From b262b98e83be4c18e11a0c5db437ebf0e5258bfa Mon Sep 17 00:00:00 2001 From: Vasily Date: Sun, 12 Apr 2020 23:46:35 +0300 Subject: [PATCH] Merge pull request #1047 from ZadenRB/date-added-dropdown-fix Fix inconsistent value in drop down list on library page (cherry picked from commit 14df43c6cb50cc38283999a3a63356a84f86b0f3) Signed-off-by: Joshua M. Boniface --- src/controllers/librarydisplay.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/controllers/librarydisplay.js b/src/controllers/librarydisplay.js index 55986a4b7d..cf2edde385 100644 --- a/src/controllers/librarydisplay.js +++ b/src/controllers/librarydisplay.js @@ -27,14 +27,10 @@ define(["globalize", "loading", "libraryMenu", "emby-checkbox", "emby-button", " view.querySelector("#chkSaveMetadataHidden").checked = config.SaveMetadataHidden; }); ApiClient.getNamedConfiguration("metadata").then(function(metadata) { - loadMetadataConfig(this, metadata) + view.querySelector("#selectDateAdded").selectedIndex = metadata.UseFileCreationTimeForDateAdded ? 1 : 0; }); } - function loadMetadataConfig(page, config) { - $("#selectDateAdded", page).val(config.UseFileCreationTimeForDateAdded ? "1" : "0"); - } - view.querySelector("form").addEventListener("submit", function(e) { loading.show(); var form = this;