1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

isolate .net specific methods in model project

This commit is contained in:
Luke Pulverenti 2014-06-01 00:11:04 -04:00
parent 2ba4a04377
commit 8cf9cab99e
7 changed files with 28 additions and 5 deletions

View file

@ -127,6 +127,11 @@
display: none; display: none;
} }
.smallBackdropPosterItem .posterItemOverlayInner>div {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.myLibraryPosterItem { .myLibraryPosterItem {
width: 42%; width: 42%;

View file

@ -127,7 +127,9 @@
var html = ''; var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes())).trigger('create'); var pagingHtml = LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes());
$('.listTopPaging', page).html(pagingHtml).trigger('create');
updateFilterControls(page); updateFilterControls(page);
@ -140,7 +142,7 @@
coverImage: true coverImage: true
}); });
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, false, getPageSizes()); html += LibraryBrowser.getPagingHtml(pagingHtml);
$('#items', page).html(html).trigger('create').createPosterItemMenus(); $('#items', page).html(html).trigger('create').createPosterItemMenus();

View file

@ -3,13 +3,27 @@
function loadUser(page, user, loggedInUser) { function loadUser(page, user, loggedInUser) {
if (!loggedInUser.Configuration.IsAdministrator) { if (!loggedInUser.Configuration.IsAdministrator) {
$('#fldIsAdmin', page).hide(); $('#fldIsAdmin', page).hide();
$('#featureAccessFields', page).hide(); $('#featureAccessFields', page).hide();
$('#accessControlDiv', page).hide(); $('#accessControlDiv', page).hide();
} else { } else {
$('#accessControlDiv', page).show(); $('#accessControlDiv', page).show();
$('#fldIsAdmin', page).show(); $('#fldIsAdmin', page).show();
$('#featureAccessFields', page).show(); $('#featureAccessFields', page).show();
$('.lnkEditUserPreferencesContainer', page).show();
}
if (!loggedInUser.Configuration.IsAdministrator || !user.Id || user.Id == loggedInUser.Id) {
$('.lnkEditUserPreferencesContainer', page).hide();
} else {
$('.lnkEditUserPreferencesContainer', page).show();
$('.lnkEditUserPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + user.Id);
} }
Dashboard.setPageTitle(user.Name || Globalize.translate('AddUser')); Dashboard.setPageTitle(user.Name || Globalize.translate('AddUser'));

View file

@ -8,7 +8,7 @@
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="index.html">${TabHome}</a> <a href="index.html">${TabHome}</a>
<a href="tvrecommended.html" class="ui-btn-active">${TabNextUp}</a> <a href="#" class="ui-btn-active">${TabNextUp}</a>
<a href="favorites.html">${TabFavorites}</a> <a href="favorites.html">${TabFavorites}</a>
<a href="tvupcoming.html">${TabUpcoming}</a> <a href="tvupcoming.html">${TabUpcoming}</a>
</div> </div>

View file

@ -6,7 +6,6 @@
<body> <body>
<div id="tvShowsPage" data-role="page" class="page libraryPage" data-theme="b"> <div id="tvShowsPage" data-role="page" class="page libraryPage" data-theme="b">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="tvrecommended.html">${TabSuggested}</a>
<a href="tvlatest.html">${TabLatest}</a> <a href="tvlatest.html">${TabLatest}</a>
<a href="#" class="ui-btn-active">${TabShows}</a> <a href="#" class="ui-btn-active">${TabShows}</a>
<a href="episodes.html">${TabEpisodes}</a> <a href="episodes.html">${TabEpisodes}</a>

View file

@ -6,7 +6,6 @@
<body> <body>
<div id="tvStudiosPage" data-role="page" class="page libraryPage" data-theme="b"> <div id="tvStudiosPage" data-role="page" class="page libraryPage" data-theme="b">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="tvrecommended.html">${TabSuggested}</a>
<a href="tvlatest.html">${TabLatest}</a> <a href="tvlatest.html">${TabLatest}</a>
<a href="tvshows.html">${TabShows}</a> <a href="tvshows.html">${TabShows}</a>
<a href="episodes.html">${TabEpisodes}</a> <a href="episodes.html">${TabEpisodes}</a>

View file

@ -14,6 +14,10 @@
<a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">${TabLibraryAccess}</a> <a href="#" data-role="button" onclick="Dashboard.navigate('userparentalcontrol.html', true);" id="lnkParentalControl" style="display: none;">${TabLibraryAccess}</a>
<a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">${TabPassword}</a> <a href="#" data-role="button" onclick="Dashboard.navigate('userpassword.html', true);">${TabPassword}</a>
</div> </div>
<p class="lnkEditUserPreferencesContainer">
<a class="lnkEditUserPreferences" href="#" target="_blank">${ButtonEditOtherUserPreferences}</a>
</p>
<form id="editUserProfileForm"> <form id="editUserProfileForm">
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li id="fldUserName"> <li id="fldUserName">