diff --git a/src/controllers/logpage.js b/src/controllers/logpage.js index 4b288b288f..77274c62b7 100644 --- a/src/controllers/logpage.js +++ b/src/controllers/logpage.js @@ -3,27 +3,42 @@ define(["datetime", "loading", "apphost", "listViewStyle", "emby-button", "flexS return function(view, params) { view.querySelector("#chkDebugLog").addEventListener("change", function() { ApiClient.getServerConfiguration().then(function(config) { - config.EnableDebugLevelLogging = view.querySelector("#chkDebugLog").checked, ApiClient.updateServerConfiguration(config) + config.EnableDebugLevelLogging = view.querySelector("#chkDebugLog").checked; + ApiClient.updateServerConfiguration(config); }) - }), view.addEventListener("viewbeforeshow", function() { + }); + + view.addEventListener("viewbeforeshow", function() { loading.show(); var apiClient = ApiClient; apiClient.getJSON(apiClient.getUrl("System/Logs")).then(function(logs) { var html = ""; - html += '