Skip to content

Commit

Permalink
Removes jQuery ⚰️
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvogel committed Feb 13, 2024
1 parent 837067e commit e31b284
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/resources/templates/bucket.html.pasta
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
</div>
</t:modal>
<t:additionalActions label="Actions">
<t:dropdownItem url="@apply('javascript:$(document.querySelector(\'#%s\')).modal()', modalId)"
<t:dropdownItem url="@apply('javascript:showProperties(\'#%s\')', modalId)"
icon="fa-solid fa-circle-info"
label="Properties"/>
<t:dropdownDeleteItem
Expand All @@ -133,6 +133,16 @@
</div>
</div>

<script>
function showProperties(selector) {
const _modalElement = document.querySelector(selector);
if (!_modalElement.modal) {
_modalElement.modal = new bootstrap.Modal(_modalElement);
}
_modalElement.modal.show();
}
</script>

<i:block name="footer">
<i:invoke template="/templates/footer.html.pasta"/>
</i:block>
Expand Down

0 comments on commit e31b284

Please sign in to comment.