sync updates

This commit is contained in:
Luke Pulverenti 2015-01-05 22:25:23 -05:00
parent 3105920c99
commit ce737e9d7b
6 changed files with 72 additions and 5 deletions

View File

@ -833,7 +833,7 @@
if (item.Type == 'Series' || item.Type == 'Season' || item.Type == 'BoxSet' || item.MediaType == 'Video') {
if (item.UserData.UnplayedItemCount) {
html += '<span class="ui-li-count">' + item.UserData.UnplayedItemCount + '</span>';
//html += '<span class="ui-li-count">' + item.UserData.UnplayedItemCount + '</span>';
} else if (item.UserData.Played && item.Type != 'TvChannel') {
html += '<div class="playedIndicator"><div class="ui-icon-check ui-btn-icon-notext"></div></div>';
}

View File

@ -0,0 +1,22 @@
(function (window, $) {
function onSubmit(page) {
if ($('#chkAccept', page).checked()) {
Dashboard.navigate('wizardfinish.html');
}
}
window.WizardAgreementPage = {
onSubmit: function () {
var page = $(this).parents('.page');
onSubmit(page);
return false;
}
};
})(window, jQuery);

View File

@ -6,7 +6,7 @@
$('#btnNextPage', page).on('click', function () {
Dashboard.navigate('wizardfinish.html');
Dashboard.navigate('wizardagreement.html');
});
});

View File

@ -67,7 +67,7 @@
Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardfinish.html');
Dashboard.navigate('wizardagreement.html');
}
});
}

View File

@ -49,8 +49,8 @@
<label for="chkManageLiveTv">${OptionAllowManageLiveTv}</label>
<input type="checkbox" id="chkEnableContentDeletion" name="chkEnableContentDeletion" />
<label for="chkEnableContentDeletion">${OptionAllowDeleteLibraryContent}</label>
<input type="checkbox" id="chkEnableSync" />
<label for="chkEnableSync">${OptionAllowSyncContent}</label>
<!--<input type="checkbox" id="chkEnableSync" />
<label for="chkEnableSync">${OptionAllowSyncContent}</label>-->
</fieldset>
<br />
<div>

View File

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<title>${TitleMediaBrowser}</title>
</head>
<body>
<div id="wizardAgreementPage" data-role="page" class="page standalonePage wizardPage">
<div data-role="content">
<div class="ui-corner-all ui-shadow wizardContent" style="position:relative;">
<form class="wizardAgreementForm">
<div>
<h2 style="float:left;">
<img src="css/images/mblogoicon.png" />${HeaderTermsOfService}
</h2>
</div>
<br style="clear:both;" />
<p>${MessagePleaseAcceptTermsOfService}</p>
<p><a href="http://mediabrowser.tv/privacy" target="_blank">${ButtonPrivacyPolicy}</a></p>
<p><a href="http://mediabrowser.tv/terms" target="_blank">${ButtonTermsOfService}</a></p>
<ul data-role="listview" class="ulForm">
<li>
<label for="chkAccept">${OptionIAcceptTermsOfService}</label>
<input id="chkAccept" type="checkbox" />
</li>
</ul>
<div class="wizardNavigation">
<button type="submit" data-iconpos="right" data-icon="arrow-r" data-inline="true">${LabelNext}</button>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$('.wizardAgreementForm').off('submit', WizardAgreementPage.onSubmit).on('submit', WizardAgreementPage.onSubmit);
</script>
</div>
</body>
</html>