update connect methods

This commit is contained in:
Luke Pulverenti 2014-10-17 00:52:41 -04:00
parent 53cd8b0eb8
commit 9855c3e6dc
3 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,6 @@
<a href="#" class="ui-btn-active lnkWebClientPreferences">${TabWebClient}</a>
</div>
<br />
<br />
<form class="webClientPreferencesForm" style="margin: 0 auto;">

View File

@ -25,6 +25,11 @@
</div>
</div>
<div class="connectMessage readOnlyContent" style="display:none;margin: 0 auto; padding: 0 1em; text-align:center;">
<p>${MessageProfileInfoSynced}</p>
<div style="margin-top: .75em;"><a href="http://mediabrowser.tv/connect" target="_blank">${ButtonLearnMoreAboutMediaBrowserConnect}</a></div>
</div>
<form class="newImageForm" style="display:none;margin: 1em auto 0;">
<div data-role="collapsible">

View File

@ -30,18 +30,21 @@
$('.newImageForm', page).hide();
$('#btnDeleteImage', page).hide();
$('.connectMessage', page).show();
}
else if (user.PrimaryImageTag) {
$('#btnDeleteImage', page).show();
$('#headerUploadNewImage', page).show();
$('.newImageForm', page).show();
$('.connectMessage', page).hide();
} else {
$('.newImageSection', page).show();
$('#fldImage', page).hide().html('');
$('#btnDeleteImage', page).hide();
$('#headerUploadNewImage', page).hide();
$('.connectMessage', page).hide();
}
Dashboard.hideLoadingMsg();