added prefix to datatype modal webelements
}, false);
window.addEventListener("hashchange", function() {
if (window.location.hash.indexOf('#type-') == 0) {
- const hash = '#' + decodeURI(window.location.hash.slice(6));
+ const hash = '#type-modal-' + decodeURI(window.location.hash.slice(6));
const typeDoc = document.querySelector(".data-types").querySelector(hash);
if (typeDoc) {
showModal(typeDoc);
@@ -561,7 +561,7 @@ ${name}
<span class="arg-type">
{{each types}}
{{if $value in $data.typedocs}}
- &lt;<a style="cursor: pointer;" class="type" title="Click to show type information" onclick="showModal(document.querySelector('#${$data.typedocs[$value]}'))">${$value}</a>&gt;
+ &lt;<a style="cursor: pointer;" class="type" title="Click to show type information" onclick="showModal(document.querySelector('#type-modal-${$data.typedocs[$value]}'))">${$value}</a>&gt;
{{else}}
&lt;<span class="type">${$value}</span>&gt;
{{/if}}
@@ -584,7 +584,7 @@ ${name}
</script>
<script type="text/x-jquery-tmpl" id="data-type-template">
- <div class="data-type-container {{if hidden}}no-{{/if}}match" id="${name}">
+ <div class="data-type-container {{if hidden}}no-{{/if}}match" id="type-modal-${name}">
<div class="data-type-name">
<h2>${name} (${type})</h2>
</div>
