expose Tmdb collection id in editor.
This commit is contained in:
parent
477ded980a
commit
2886626322
2 changed files with 36 additions and 8 deletions
|
@ -210,21 +210,21 @@
|
|||
<div>
|
||||
<p id="albumAssociationMessage" style="display: none;">Associate this album with a movie, tv series and/or game, and we'll be able to link it to other items in your library.</p>
|
||||
<div data-role="fieldcontain" id="fldGamesDb" style="display: none;">
|
||||
<label for="txtGamesDb">GamesDb:</label>
|
||||
<label for="txtGamesDb">GamesDb Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtGamesDb" name="txtGamesDb" data-mini="true" />
|
||||
</div>
|
||||
<a id="btnOpenGamesDb" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldImdb" style="display: none;">
|
||||
<label for="txtImdb">Imdb:</label>
|
||||
<label for="txtImdb">IMDb Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtImdb" name="txtImdb" data-mini="true" />
|
||||
</div>
|
||||
<a id="btnOpenImdb" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldMusicBrainz" style="display: none;">
|
||||
<label for="txtMusicBrainz">MusicBrainz:</label>
|
||||
<label for="txtMusicBrainz">MusicBrainz Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtMusicBrainz" name="txtMusicBrainz" data-mini="true" />
|
||||
</div>
|
||||
|
@ -238,33 +238,40 @@
|
|||
<a id="btnOpenMusicbrainzReleaseGroup" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldRottenTomatoes" style="display: none;">
|
||||
<label for="txtRottenTomatoes">Rotten Tomatoes:</label>
|
||||
<label for="txtRottenTomatoes">Rotten Tomatoes Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtRottenTomatoes" name="txtRottenTomatoes" data-mini="true" />
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldTmdb" style="display: none;">
|
||||
<label for="txtTmdb">TheMovieDB:</label>
|
||||
<label for="txtTmdb">TheMovieDB Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtTmdb" name="txtTmdb" data-mini="true" />
|
||||
</div>
|
||||
<a id="btnOpenTmdb" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldTmdbCollection" style="display: none;">
|
||||
<label for="txtTmdbCollection">TheMovieDB Collection Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtTmdbCollection" name="txtTmdbCollection" data-mini="true" />
|
||||
</div>
|
||||
<a id="btnOpenTmdbCollection" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldTvdb" style="display: none;">
|
||||
<label for="txtTvdb">TheTVDB:</label>
|
||||
<label for="txtTvdb">TheTVDB Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtTvdb" name="txtTvdb" data-mini="true" />
|
||||
</div>
|
||||
<a id="btnOpenTvdb" href="#" target="_blank" data-icon="arrow-right" data-inline="true" data-iconpos="notext" data-role="button" style="vertical-align: top;"></a>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldTvCom" style="display: none;">
|
||||
<label for="txtTvCom">TV.com:</label>
|
||||
<label for="txtTvCom">TV.com Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtTvCom" name="txtTvCom" data-mini="true" />
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldZap2It" style="display: none;">
|
||||
<label for="txtZap2It">Zap2it:</label>
|
||||
<label for="txtZap2It">Zap2it Id:</label>
|
||||
<div style="display: inline-block; width: 250px;">
|
||||
<input class="txtProviderId" id="txtZap2It" name="txtZap2It" data-mini="true" />
|
||||
</div>
|
||||
|
|
|
@ -574,6 +574,12 @@
|
|||
$('#fldTmdb', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Movie") {
|
||||
$('#fldTmdbCollection', page).show();
|
||||
} else {
|
||||
$('#fldTmdbCollection', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Series" || item.Type == "Season" || item.Type == "Episode" || item.Type == "MusicAlbum") {
|
||||
$('#fldTvdb', page).show();
|
||||
$('#fldTvCom', page).show();
|
||||
|
@ -866,6 +872,7 @@
|
|||
$('#txtGamesDb', page).val(providerIds.Gamesdb || "");
|
||||
$('#txtImdb', page).val(providerIds.Imdb || "");
|
||||
$('#txtTmdb', page).val(providerIds.Tmdb || "");
|
||||
$('#txtTmdbCollection', page).val(providerIds.TmdbCollection || "");
|
||||
$('#txtTvdb', page).val(providerIds.Tvdb || "");
|
||||
$('#txtTvCom', page).val(providerIds.Tvcom || "");
|
||||
$('#txtMusicBrainz', page).val(providerIds.Musicbrainz || "");
|
||||
|
@ -1314,6 +1321,20 @@
|
|||
|
||||
});
|
||||
|
||||
$('#txtTmdbCollection', this).on('change', function () {
|
||||
|
||||
var val = this.value;
|
||||
|
||||
if (val) {
|
||||
|
||||
$('#btnOpenTmdbCollection', page).attr('href', 'http://www.themoviedb.org/collection/' + val);
|
||||
|
||||
} else {
|
||||
$('#btnOpenTmdbCollection', page).attr('href', '#');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#txtTvdb', this).on('change', function () {
|
||||
|
||||
var val = this.value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue