From f09da4d5488e49bdbc421ac8d11f046a16b8b913 Mon Sep 17 00:00:00 2001 From: Tomasz Wolniewicz <twoln@umk.pl> Date: Fri, 16 Jun 2023 07:54:43 +0200 Subject: [PATCH] fixing positioning problem of the details window --- templates/js/entities.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/js/entities.js b/templates/js/entities.js index 5d8b549..769932b 100644 --- a/templates/js/entities.js +++ b/templates/js/entities.js @@ -19,7 +19,6 @@ $(function(){ $(".entity_links").css('font-weight','normal'); $("#entity_details_content").html(""); }, - position: { my: "left top", at: "left+50 top+50", of : window } }); }); @@ -247,12 +246,12 @@ function show_details(id,next,prev) { $(".entity_links").css('color','#336699'); $(".entity_links").css('font-weight','normal'); $("#link_"+id).css('color','green'); - $("#link_"+id).css('font-weight','bold'); - $.get("api.php",{action: 'show_entity_details', row_id: id, format: 'html'}, function(data) { + $.get("api.php",{action: 'show_entity_details', row_id: id, format: 'html', opt: 'internal'}, function(data) { $("#loading").hide(); $("body").removeClass("busy"); $("#link_"+id).removeClass("busy"); $("#entity_details").dialog("open"); + $("#entity_details").parent().css("top", $(window).scrollTop()+30); $("#entity_details_content").html(data); if(coco_id != 0) $("#show_coco").show(); -- GitLab