diff --git a/dashboard-ui/bower_components/emby-webcomponents/sync/sync.js b/dashboard-ui/bower_components/emby-webcomponents/sync/sync.js index 55ea4e9869..cbba5cbfd5 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/sync/sync.js +++ b/dashboard-ui/bower_components/emby-webcomponents/sync/sync.js @@ -164,7 +164,7 @@ html += ''; if (!targets.length) { html += '
' + globalize.translate('sharedcomponents#LabelSyncNoTargetsHelp') + '
'; - html += '
' + globalize.translate('sharedcomponents#LearnMore') + '
'; + html += '
' + globalize.translate('sharedcomponents#LearnMore') + '
'; } html += ''; } @@ -247,9 +247,9 @@ })); } - var lnkHelp = elem.querySelector('.lnkHelp'); - if (lnkHelp) { - lnkHelp.addEventListener('click', onHelpLinkClick); + var lnkLearnMore = elem.querySelector('.lnkLearnMore'); + if (lnkLearnMore) { + lnkLearnMore.addEventListener('click', onHelpLinkClick); } focusManager.autoFocus(elem); @@ -312,7 +312,7 @@ html += globalize.translate('sharedcomponents#Sync'); html += ''; - html += ''; + html += ''; html += ''; @@ -332,8 +332,10 @@ html += ''; html += ''; - dlg.innerHTML = html; + + dlg.querySelector('.lnkHelp').addEventListener('click', onHelpLinkClick); + document.body.appendChild(dlg); var submitted = false;