diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-select/emby-select.js b/dashboard-ui/bower_components/emby-webcomponents/emby-select/emby-select.js index 2b730a4125..dde2d64ffc 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/emby-select/emby-select.js +++ b/dashboard-ui/bower_components/emby-webcomponents/emby-select/emby-select.js @@ -169,6 +169,13 @@ arrowContainer.appendChild(arrow); }; + EmbySelectPrototype.setLabel = function (text) { + + var label = this.parentNode.querySelector('label'); + + label.innerHTML = text; + }; + document.registerElement('emby-select', { prototype: EmbySelectPrototype, extends: 'select' diff --git a/dashboard-ui/dashboard/dashboardgeneral.js b/dashboard-ui/dashboard/dashboardgeneral.js index b87ab58a48..5cfd705032 100644 --- a/dashboard-ui/dashboard/dashboardgeneral.js +++ b/dashboard-ui/dashboard/dashboardgeneral.js @@ -36,10 +36,10 @@ if (systemInfo.CanSelfUpdate) { $('.fldAutomaticUpdates', page).show(); - $('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevel')); + page.querySelector('#selectAutomaticUpdateLevel').setLabel(Globalize.translate('LabelAutomaticUpdateLevel')); } else { $('.fldAutomaticUpdates', page).hide(); - $('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevelForPlugins')); + page.querySelector('#selectAutomaticUpdateLevel').setLabel(Globalize.translate('LabelAutomaticUpdateLevelForPlugins')); } $('#chkEnableAutomaticServerUpdates', page).checked(config.EnableAutoUpdate);