Fix for album release info
This commit is contained in:
parent
24b2cf76bc
commit
daeaed4ba9
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user