mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Add song year to detail view
This commit is contained in:
parent
37990e596c
commit
e7d9816010
@ -11,7 +11,7 @@
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Auf Liste setzen</h5>
|
||||
<h5 class="modal-title" id="exampleModalLabel">Auf die Liste setzen</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
@ -20,7 +20,7 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h5 id="songTitle"></h5>
|
||||
<p id="songArtist"></p>
|
||||
<p><span id="songArtist"></span> <span id="songYear"></span></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@ -101,12 +101,17 @@
|
||||
}
|
||||
|
||||
function setSelectedId(id) {
|
||||
$("#songArtist").html("");
|
||||
$("#songTitle").html("");
|
||||
$("#songYear").html("");
|
||||
$("#indicators")[0].innerHTML = "";
|
||||
|
||||
$("#selectedId").attr("value", id);
|
||||
$.getJSON("/api/songs/details/" + id, function (data) {
|
||||
console.log(data);
|
||||
$("#songTitle").html(data["title"]);
|
||||
$("#songArtist").html(data["artist"]);
|
||||
|
||||
$("#songYear").html(data["year"]);
|
||||
$("#indicators")[0].innerHTML = "";
|
||||
|
||||
let duoindicator_badge = document.createElement("span");
|
||||
|
Loading…
x
Reference in New Issue
Block a user