adjust default setting for library monitor

This commit is contained in:
Luke Pulverenti 2015-06-14 13:55:42 -04:00
parent e5236fa2cc
commit 3b403bc22d
13 changed files with 30 additions and 24 deletions

View File

@ -78,10 +78,10 @@
<div id="musicGenreTabs" class="itemTabs" style="display: none;"> <div id="musicGenreTabs" class="itemTabs" style="display: none;">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html" class="ui-btn-active">${TabGenres}</a> <a href="musicgenres.html" class="ui-btn-active">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>
@ -89,10 +89,10 @@
<div id="artistTabs" class="itemTabs" style="display: none;"> <div id="artistTabs" class="itemTabs" style="display: none;">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="ui-btn-active musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="ui-btn-active musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -62,10 +62,10 @@
<div id="songTabs" class="itemTabs" style="display: none;"> <div id="songTabs" class="itemTabs" style="display: none;">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="ui-btn-active musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="ui-btn-active musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>
@ -73,10 +73,10 @@
<div id="albumTabs" class="itemTabs" style="display: none;"> <div id="albumTabs" class="itemTabs" style="display: none;">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html" class="ui-btn-active">${TabAlbums}</a> <a href="musicalbums.html" class="ui-btn-active">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>
@ -84,10 +84,10 @@
<div id="musicVideoTabs" class="itemTabs" style="display: none;"> <div id="musicVideoTabs" class="itemTabs" style="display: none;">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html" class="ui-btn-active">${TabMusicVideos}</a> <a href="musicvideos.html" class="ui-btn-active">${TabMusicVideos}</a>
</div> </div>

View File

@ -67,8 +67,12 @@
<br /> <br />
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li> <li>
<input type="checkbox" id="chkEnableRealtimeMonitor" name="chkEnableRealtimeMonitor" /> <label for="selectEnableRealtimeMonitor">${LabelEnableRealtimeMonitor}</label>
<label for="chkEnableRealtimeMonitor">${LabelEnableRealtimeMonitor}</label> <select id="selectEnableRealtimeMonitor" data-mini="true">
<option value="Auto">${OptionAuto}</option>
<option value="Enabled">${OptionYes}</option>
<option value="Disabled">${OptionNo}</option>
</select>
<div class="fieldDescription"> <div class="fieldDescription">
${LabelEnableRealtimeMonitorHelp} ${LabelEnableRealtimeMonitorHelp}
</div> </div>

View File

@ -7,10 +7,10 @@
<div id="musicAlbumArtistsPage" data-role="page" class="page libraryPage" data-require="scripts/musicalbumartists,scripts/queryfilters"> <div id="musicAlbumArtistsPage" data-role="page" class="page libraryPage" data-require="scripts/musicalbumartists,scripts/queryfilters">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="#" class="ui-btn-active">${TabAlbumArtists}</a> <a href="#" class="ui-btn-active">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -7,10 +7,10 @@
<div id="musicAlbumsPage" data-role="page" class="page libraryPage" data-require="scripts/musicalbums,scripts/queryfilters"> <div id="musicAlbumsPage" data-role="page" class="page libraryPage" data-require="scripts/musicalbums,scripts/queryfilters">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="#" class="ui-btn-active">${TabAlbums}</a> <a href="#" class="ui-btn-active">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -7,10 +7,10 @@
<div id="musicArtistsPage" data-role="page" class="page libraryPage" data-require="scripts/musicartists,scripts/queryfilters"> <div id="musicArtistsPage" data-role="page" class="page libraryPage" data-require="scripts/musicartists,scripts/queryfilters">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="#" class="ui-btn-active">${TabArtists}</a> <a href="#" class="ui-btn-active">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -7,10 +7,10 @@
<div id="musicGenresPage" data-role="page" class="page libraryPage" data-require="scripts/musicgenres"> <div id="musicGenresPage" data-role="page" class="page libraryPage" data-require="scripts/musicgenres">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="#" class="ui-btn-active">${TabGenres}</a> <a href="#" class="ui-btn-active">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -7,10 +7,10 @@
<div id="musicRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="musicartist" data-require="scripts/musicrecommended"> <div id="musicRecommendedPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="musicartist" data-require="scripts/musicrecommended">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="#" class="ui-btn-active">${TabSuggestions}</a> <a href="#" class="ui-btn-active">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>

View File

@ -8,10 +8,10 @@
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="songs.html" class="musicSongsTab">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="#" class="ui-btn-active">${TabMusicVideos}</a> <a href="#" class="ui-btn-active">${TabMusicVideos}</a>
</div> </div>

View File

@ -2277,7 +2277,7 @@
}, },
getUserDataIconsHtml: function (item) { getUserDataIconsHtml: function (item, includePlayed) {
var html = ''; var html = '';
@ -2286,13 +2286,15 @@
var itemId = item.Id; var itemId = item.Id;
var type = item.Type; var type = item.Type;
var tooltipPlayed = Globalize.translate('TooltipPlayed'); if (includePlayed !== false) {
var tooltipPlayed = Globalize.translate('TooltipPlayed');
if ((item.MediaType || item.IsFolder) && type != "TvChannel" && type != "MusicArtist" && item.MediaType != "Audio") { if ((item.MediaType || item.IsFolder) && type != "TvChannel" && type != "MusicArtist" && item.MediaType != "Audio") {
if (userData.Played) { if (userData.Played) {
html += LibraryBrowser.getUserDataButtonHtml('markPlayed', itemId, 'btnUserItemRating btnUserItemRatingOn', 'fa-check', tooltipPlayed); html += LibraryBrowser.getUserDataButtonHtml('markPlayed', itemId, 'btnUserItemRating btnUserItemRatingOn', 'fa-check', tooltipPlayed);
} else { } else {
html += LibraryBrowser.getUserDataButtonHtml('markPlayed', itemId, 'btnUserItemRating', 'fa-check', tooltipPlayed); html += LibraryBrowser.getUserDataButtonHtml('markPlayed', itemId, 'btnUserItemRating', 'fa-check', tooltipPlayed);
}
} }
} }

View File

@ -10,7 +10,7 @@
$('#txtSeasonZeroName', page).val(config.SeasonZeroDisplayName); $('#txtSeasonZeroName', page).val(config.SeasonZeroDisplayName);
$('#chkEnableRealtimeMonitor', page).checked(config.EnableRealtimeMonitor).checkboxradio("refresh"); $('#selectEnableRealtimeMonitor', page).val(config.EnableLibraryMonitor).selectmenu("refresh");
$('#txtItemsByNamePath', page).val(config.ItemsByNamePath || ''); $('#txtItemsByNamePath', page).val(config.ItemsByNamePath || '');
@ -31,7 +31,7 @@
config.SeasonZeroDisplayName = $('#txtSeasonZeroName', form).val(); config.SeasonZeroDisplayName = $('#txtSeasonZeroName', form).val();
config.EnableRealtimeMonitor = $('#chkEnableRealtimeMonitor', form).checked(); config.EnableLibraryMonitor = $('#selectEnableRealtimeMonitor', form).val();
config.EnableAudioArchiveFiles = $('#chkEnableAudioArchiveFiles', form).checked(); config.EnableAudioArchiveFiles = $('#chkEnableAudioArchiveFiles', form).checked();
config.EnableVideoArchiveFiles = $('#chkEnableVideoArchiveFiles', form).checked(); config.EnableVideoArchiveFiles = $('#chkEnableVideoArchiveFiles', form).checked();

View File

@ -382,7 +382,7 @@
if (nowPlayingItem.Id) { if (nowPlayingItem.Id) {
ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).done(function (item) { ApiClient.getItem(Dashboard.getCurrentUserId(), nowPlayingItem.Id).done(function (item) {
nowPlayingUserData.html(LibraryBrowser.getUserDataIconsHtml(item)); nowPlayingUserData.html(LibraryBrowser.getUserDataIconsHtml(item, false));
}); });
} }
} }

View File

@ -7,10 +7,10 @@
<div id="songsPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="musicartist" data-require="scripts/songs,scripts/queryfilters"> <div id="songsPage" data-role="page" class="page libraryPage backdropPage" data-backdroptype="musicartist" data-require="scripts/songs,scripts/queryfilters">
<div class="libraryViewNav scopedLibraryViewNav"> <div class="libraryViewNav scopedLibraryViewNav">
<a href="musicrecommended.html">${TabSuggestions}</a> <a href="musicrecommended.html">${TabSuggestions}</a>
<a href="#" class="ui-btn-active">${TabSongs}</a>
<a href="musicalbums.html">${TabAlbums}</a> <a href="musicalbums.html">${TabAlbums}</a>
<a href="musicalbumartists.html">${TabAlbumArtists}</a> <a href="musicalbumartists.html">${TabAlbumArtists}</a>
<a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a> <a href="musicartists.html" class="musicArtistsTab">${TabArtists}</a>
<a href="#" class="ui-btn-active">${TabSongs}</a>
<a href="musicgenres.html">${TabGenres}</a> <a href="musicgenres.html">${TabGenres}</a>
<a href="musicvideos.html">${TabMusicVideos}</a> <a href="musicvideos.html">${TabMusicVideos}</a>
</div> </div>