diff --git a/web/index.css b/web/index.css index 67521ba..d9cd832 100644 --- a/web/index.css +++ b/web/index.css @@ -165,6 +165,7 @@ body{ right: 0; background-color: #80808070; display: flex; + overflow-y: auto; } div#overlay { diff --git a/web/index.html b/web/index.html index abe2a4c..af4b322 100644 --- a/web/index.html +++ b/web/index.html @@ -82,6 +82,37 @@ + diff --git a/web/index.js b/web/index.js index eb31b7b..f8d5dae 100644 --- a/web/index.js +++ b/web/index.js @@ -626,6 +626,12 @@ function loadUnassigned(){ }); }) } +function showXdrHelp(){ + let helpContent=document.getElementById('xdrHelp'); + if (helpContent){ + showOverlay(helpContent.innerHTML,true); + } +} function toggleClass(el,id,classList){ let nc=classList[id]; let rt=false; @@ -707,7 +713,14 @@ function createConfigDefinitions(parent, capabilities, defs,includeXdr) { }) bt = addEl('button', 'infoButton', btContainer, '?'); bt.addEventListener('click', function (ev) { - showOverlay(item.description); + if (item.description){ + showOverlay(item.description); + } + else{ + if (item.category.match(/^xdr/)){ + showXdrHelp(); + } + } }); }) }