Fix for album release info

This commit is contained in:
gballan1 2016-11-29 11:53:07 -05:00
parent 24b2cf76bc
commit daeaed4ba9
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<img id="album-artwork" class="image-responsive album-art" src="{{ albums[0].album_art }}" alt="{{ albums[0].title }}">
<div class="caption">
<h3 id="album-title">{{ albums[0].title }}</h3>
<h4 id="album-release">{{ albums[0].releaseDate }}</h4>
<h5 id="album-release">Released on <span>{{ albums[0].releaseDate }}</span></h5>
{% if albums[0].description %}
<hr />
<p id="album-description">{{ albums[0].description }}</p>

View File

@ -24,7 +24,7 @@
<img id="album-artwork" class="image-responsive album-art" src="{{ albums[0].album_art }}" alt="{{ albums[0].title }}">
<div class="caption">
<h3 id="album-title">{{ albums[0].title }}</h3>
<h4 id="album-release">{{ albums[0].releaseDate }}</h4>
<h5 id="album-release">Released on <span>{{ albums[0].releaseDate }}</span></h5>
{% if albums[0].description %}
<hr />
<p id="album-description">{{ albums[0].description }}</p>

View File

@ -46,7 +46,7 @@ function getAlbumInfo(albumElem) {
// change album title
$('#album-title').text(json.title);
// change album release date
$('#album-release').text(new Date(json.release_date, "January 25 2015"))
$('#album-release span').text(new Date(json.release_date, "January 25 2015"));
// change album description
$('#album-description').text(json.description);
});