Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Feb 19, 2024
1 parent d76b8b6 commit 9bd7fb8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions resources/html/default/js/startscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1293,21 +1293,23 @@ function formatHTMLTableForResult(result,nodeicon){
}
dialogcontent+="<td><a href=\""+res+"\" target=\"_blank\">"+shortenURI(res)+"</a> <a href=\"#\" onclick=\"getPropRelationDialog('"+res+"','"+detpropicon+"')\">[x]</a></td>"
if(Object.keys(result[res]).length>1){
dialogcontent+="<td><ul>"
dialogcontent+="<td>"
if(result[res].length>listthreshold){
dialogcontent+="<details><summary>"+result[res].length+" values</summary>"
}
dialogcontent+="<ul>"
for(resitem in result[res]){
if((resitem+"").startsWith("http")){
dialogcontent+="<li><a href=\""+rewriteLink(resitem)+"\" target=\"_blank\">"+shortenURI(resitem)+"</a> ["+result[res][resitem]+"]</li>"
}else if(resitem!="instancecount"){
dialogcontent+="<li>"+result[res][resitem]+"</li>"
}
}
dialogcontent+="</ul>"
if(result[res].length>listthreshold){
dialogcontent+="</details>"
}
dialogcontent+="</ul></td>"
dialogcontent+="</td>"
}else if((Object.keys(result[res])[0]+"").startsWith("http")){
dialogcontent+="<td><a href=\""+rewriteLink(Object.keys(result[res])[0]+"")+"\" target=\"_blank\">"+shortenURI(Object.keys(result[res])[0]+"")+"</a></td>"
}else if(Object.keys(result[res])[0]!="instancecount"){
Expand Down
8 changes: 5 additions & 3 deletions util/doc/docdefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,21 +1307,23 @@ class DocDefaults:
}
dialogcontent+="<td><a href=\\""+res+"\\" target=\\"_blank\\">"+shortenURI(res)+"</a> <a href=\\"#\\" onclick=\\"getPropRelationDialog('"+res+"','"+detpropicon+"')\\">[x]</a></td>"
if(Object.keys(result[res]).length>1){
dialogcontent+="<td><ul>"
dialogcontent+="<td>"
if(result[res].length>listthreshold){
dialogcontent+="<details><summary>"+result[res].length+" values</summary>"
}
dialogcontent+="<ul>"
for(resitem in result[res]){
if((resitem+"").startsWith("http")){
if((resitem+"").trim().startsWith("http")){
dialogcontent+="<li><a href=\\""+rewriteLink(resitem)+"\\" target=\\"_blank\\">"+shortenURI(resitem)+"</a> ["+result[res][resitem]+"]</li>"
}else if(resitem!="instancecount"){
dialogcontent+="<li>"+result[res][resitem]+"</li>"
}
}
dialogcontent+="</ul>"
if(result[res].length>listthreshold){
dialogcontent+="</details>"
}
dialogcontent+="</ul></td>"
dialogcontent+="</td>"
}else if((Object.keys(result[res])[0]+"").startsWith("http")){
dialogcontent+="<td><a href=\\""+rewriteLink(Object.keys(result[res])[0]+"")+"\\" target=\\"_blank\\">"+shortenURI(Object.keys(result[res])[0]+"")+"</a></td>"
}else if(Object.keys(result[res])[0]!="instancecount"){
Expand Down

0 comments on commit 9bd7fb8

Please sign in to comment.