Explorar o código

add history link

ming %!s(int64=3) %!d(string=hai) anos
pai
achega
1fee98a6e0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      static/script_msg.js

+ 1 - 1
static/script_msg.js

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