From af66ee9dcb3c9804c24f0cec39688b2da43c79c4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 23 Aug 2016 02:48:59 -0400 Subject: [PATCH] update sync --- .../emby-webcomponents/sync/sync.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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;