scinote-web/app/views/protocols/index/_protocolsio_modal.html.erb
sboursen-scinote 9b24bf9504 Fix Protocols.io modal not loading any protocols [SCI-9468]
The JavaScript responsible for loading the list was attached to a
Partial that by itself was loaded using and AJAX request. Therefore,
The JavaScript was not being executed (no page reload). It was thus moved
to the parent partial (loaded on page reload) and called when the required
HTML is appended to the DOM.
2023-10-05 12:03:05 +02:00

7 lines
358 B
Text

<div class="modal" id="protocolsioModal" data-url="<%= protocolsio_protocols_path %>" tabindex="-1" role="dialog" aria-labelledby="protocolsio-modal-label">
<div class="modal-dialog" role="document">
<div class="modal-content"></div>
</div>
</div>
<%= javascript_include_tag "protocols/steps" %>
<%= javascript_include_tag "protocols/protocolsio" %>