add connect error handling

This commit is contained in:
Luke Pulverenti 2014-09-14 13:12:47 -04:00
parent 503a18926b
commit 2ad4785b2b
2 changed files with 15 additions and 3 deletions

View File

@ -95,8 +95,17 @@
}).done(function () {
Dashboard.alert(Globalize.translate('SettingsSaved'));
loadData(page);
Dashboard.alert({
message: Globalize.translate('MessageMediaBrowserAccontRemoved'),
title: Globalize.translate('HeaderMediaBrowserAccountRemoved'),
callback: function () {
loadData(page);
}
});
});
}

View File

@ -28,7 +28,10 @@
<li id="fldConnectInfo" style="display: none;">
<label for="txtConnectUserName">${LabelConnectUserName}</label>
<input id="txtConnectUserName" type="text" />
<div class="fieldDescription">${LabelConnectUserNameHelp}</div>
<div class="fieldDescription">
<div>${LabelConnectUserNameHelp}</div>
<div style="margin-top: .75em;"><a href="http://mediabrowser.tv" target="_blank">${ButtonLearnMoreAboutMediaBrowserConnect}</a></div>
</div>
</li>
<li id="fldIsAdmin" style="display: none;">
<input type="checkbox" id="chkIsAdmin" name="chkIsAdmin" />