Skip to content

Commit

Permalink
fixed contact request html
Browse files Browse the repository at this point in the history
  • Loading branch information
golsch authored and kkrebs committed Nov 11, 2024
1 parent 48ae996 commit 396b112
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/xsl/metadata/contact-request-modal.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,16 @@
</xsl:template>

<xsl:template name="print-open-create-contact-request-form-button">
<li>
<a id="createContactRequestMenuItem" class="dropdown-item" role="menuitem" tabindex="-1"
<li id="createContactRequestMenuItem">
<a class="dropdown-item" role="menuitem" tabindex="-1"
data-toggle="modal" data-target="#createContactRequestModal" data-object-id="{$objectId}">
<xsl:value-of select="i18n:translate('digibib.contactRequest.frontend.button.contact')" />
</a>
</li>
<script>
document.addEventListener('DOMContentLoaded', () => {
const menu = document.querySelector('div#mir-edit-div ul.dropdown-menu');
const item = document.querySelector('#createContactRequestMenuItem');
const item = document.querySelector('li#createContactRequestMenuItem');
menu.append(item);
});
</script>
Expand Down

0 comments on commit 396b112

Please sign in to comment.