From 329708dbc40e8173fe4861da3afa58385bc8f1f5 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Fri, 16 Dec 2022 13:58:50 +0100
Subject: [PATCH] update functions.js

---
 js/functions.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index e49d809..6b300d9 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -44,6 +44,7 @@ function getQueryParams() {
  * @returns {undefined}
  */
 function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
+    var contentid=id+"-content";
     clog("getPageItem('"+id+"', '"+sMoreData+"')");
     // $('#'+id).html('reading ...');
     if (!$('#' + id).hasClass('active')) {
@@ -64,11 +65,11 @@ function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
         type: "GET",
         success: function (data) {
             $('#' + id).css('opacity', '1');
-            $('#' + id).html(data);
+            $('#' + contentid).html(data);
         },
         error: function () {
             $('#' + id).css('opacity', false);
-            $('#' + id).html('Failed :-/');
+            $('#' + contentid).html('Failed :-/');
             $('#errorlog').html(
                     $('#errorlog').html('AJAX error: <a href="' + phpscript + '?' + sData + '">' + phpscript + '?' + sData + '</a>')
                     );
-- 
GitLab