Skip to content

Commit

Permalink
rename addScrollHTMX to addScrollHtmx
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Feb 27, 2024
1 parent 4edbd84 commit 9961645
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/shared/utils/HAWCUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class HAWCUtils {
$("body,html").animate({scrollTop: scrollVal}, 400);
}

static addScrollHTMX(edit_class, detail_class, del_button_id = null) {
static addScrollHtmx(edit_class, detail_class, del_button_id = null) {
$("body").on("htmx:afterSwap", function(evt) {
var targetHTML = evt.detail.target; // the HTML element that is being replaced
var newHTML = evt.detail.elt; // the new HTML element from our HTMX response
Expand Down
2 changes: 1 addition & 1 deletion hawc/apps/eco/templates/eco/design_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h2 class="d-inline-block">{{object.name}}</h2>
{% block extrajs %}
<script type="text/javascript">
$(window).ready(function() {
window.app.HAWCUtils.addScrollHTMX("eco-edit-row", "eco-obj-row");
window.app.HAWCUtils.addScrollHtmx("eco-edit-row", "eco-obj-row");
});
</script>
{% endblock %}
2 changes: 1 addition & 1 deletion hawc/apps/epiv2/templates/epiv2/design_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h2 class="d-inline-block">Update {{object.summary}}</h2>
app.formStartup(document);
});
$(window).ready(function() {
window.app.HAWCUtils.addScrollHTMX("epiv2-edit-row", "epiv2-obj-row");
window.app.HAWCUtils.addScrollHtmx("epiv2-edit-row", "epiv2-obj-row");
});
</script>
{% endblock %}
2 changes: 1 addition & 1 deletion hawc/apps/lit/templates/lit/workflows.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2 class="mb-2">Workflows</h2>
{% include "common/helptext_popup_js.html" %}
<script type="text/javascript">
$(window).ready(function() {
window.app.HAWCUtils.addScrollHTMX("workflow-edit-row", "workflow-row", "workflow-conf-delete");
window.app.HAWCUtils.addScrollHtmx("workflow-edit-row", "workflow-row", "workflow-conf-delete");
});
</script>
{% endblock %}

0 comments on commit 9961645

Please sign in to comment.