begin work on daily episodes

This commit is contained in:
Luke Pulverenti 2014-12-22 22:58:14 -05:00
parent 5ffb518fe0
commit b2cbf5ecb4
4 changed files with 12 additions and 21 deletions

View File

@ -14,7 +14,7 @@
<a href="librarysettings.html" data-role="button">${TabAdvanced}</a>
</div>
<div class="readOnlyContent">
<p style="margin: 2em 0;"><a href="http://mediabrowser.tv/community/index.php?/topic/674-media-files-folders-structure/" target="_blank">${ReferToMediaLibraryWiki}</a></p>
<p style="margin: 2em 0;"><a href="https://github.com/MediaBrowser/Wiki/wiki/Library%20setup" target="_blank">${ReferToMediaLibraryWiki}</a></p>
<div id="divMediaLibrary">
<p>
<button type="button" data-mini="true" data-icon="plus" data-iconpos="right" onclick="MediaLibraryPage.addVirtualFolder();">${ButtonAddMediaFolder}</button>

View File

@ -1,6 +1,6 @@
(function ($, window, document) {
function loadMediaFolders(page, user, mediaFolders) {
function loadMediaFolders(page, mediaFolders) {
var html = '';
@ -14,7 +14,7 @@
var id = 'mediaFolder' + i;
var checkedAttribute = user.Policy.BlockedMediaFolders.indexOf(folder.Id) == -1 && user.Policy.BlockedMediaFolders.indexOf(folder.Name) == -1 ? ' checked="checked"' : '';
var checkedAttribute = ' checked="checked"';
html += '<input class="chkMediaFolder" data-foldername="' + folder.Id + '" type="checkbox" id="' + id + '"' + checkedAttribute + ' />';
html += '<label for="' + id + '">' + folder.Name + '</label>';
@ -25,7 +25,7 @@
$('.mediaFolderAccess', page).html(html).trigger('create');
}
function loadChannels(page, user, channels) {
function loadChannels(page, channels) {
var html = '';
@ -39,7 +39,7 @@
var id = 'channels' + i;
var checkedAttribute = user.Policy.BlockedChannels.indexOf(folder.Id) == -1 ? ' checked="checked"' : '';
var checkedAttribute = ' checked="checked"';
html += '<input class="chkChannel" data-foldername="' + folder.Id + '" type="checkbox" id="' + id + '"' + checkedAttribute + ' />';
html += '<label for="' + id + '">' + folder.Name + '</label>';
@ -56,9 +56,9 @@
}
}
function loadUser(page, user) {
function loadUser(page) {
$('#txtUserName', page).val(user.Name);
$('#txtUserName', page).val('');
Dashboard.showLoadingMsg();
@ -68,8 +68,8 @@
$.when(promise4, promise5).done(function (response4, response5) {
loadMediaFolders(page, user, response4[0].Items);
loadChannels(page, user, response5[0].Items);
loadMediaFolders(page, response4[0].Items);
loadChannels(page, response5[0].Items);
Dashboard.hideLoadingMsg();
});
@ -116,19 +116,9 @@
};
}
function getUser() {
return {
Configuration: {
BlockedMediaFolders: [],
BlockedChannels: []
}
};
}
function loadData(page) {
loadUser(page, getUser());
loadUser(page);
}
window.NewUserPage = new newUserPage();

View File

@ -14,6 +14,7 @@
<li id="fldUserName">
<label for="txtUserName">${LabelName}</label>
<input id="txtUserName" required="required" type="text" />
<div class="fieldDescription">${LabelNewUserNameHelp}</div>
</li>
</ul>

View File

@ -19,7 +19,7 @@
</p>
<div id="divVirtualFolders"></div>
</div>
<p><a href="http://mediabrowser.tv/community/index.php?/topic/674-media-files-folders-structure/" target="_blank">${ReferToMediaLibraryWiki}</a></p>
<p><a href="https://github.com/MediaBrowser/Wiki/wiki/Library%20setup" target="_blank">${ReferToMediaLibraryWiki}</a></p>
<div data-role="popup" id="popupEnterText" class="popup">