|
@@ -82,7 +82,7 @@ var myModal = new bootstrap.Modal(document.getElementById('history'), {
|
|
|
function load_data(){
|
|
|
var title = document.getElementById("title");
|
|
|
var linker = document.getElementById("linker");
|
|
|
- linker.setAttribute('href', loaded_data.link)
|
|
|
+ linker.setAttribute('href', loaded_data.find(item => item.id == tid).link)
|
|
|
myModal.hide()
|
|
|
tid = event.srcElement.id
|
|
|
console.log(tid);
|