Add hidden element to support legacy code for MarvinJS at results [SCI-9346]

This commit is contained in:
Ivan Kljun 2023-09-26 10:09:45 +02:00
parent 5c6f97a032
commit f16354e498

View file

@ -41,6 +41,15 @@
@create:ove_file="openOVEditor"
@create:marvinjs_file="openMarvinJsModal($refs.marvinJsButton)"
></MenuDropdown>
<span
class="new-marvinjs-upload-button hidden"
:data-object-id="result.id"
ref="marvinJsButton"
:data-marvin-url="result.attributes.marvinjs_context.marvin_js_asset_url"
:data-object-type="result.attributes.type"
tabindex="0"
></span> <!-- Hidden element to support legacy code -->
<a href="#"
ref="comments"
class="open-comments-sidebar btn icon-btn btn-light"