Skip to content

Commit

Permalink
rename delRow to deleteRow
Browse files Browse the repository at this point in the history
  • Loading branch information
shapiromatron committed Feb 27, 2024
1 parent b2bb319 commit 4edbd84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions frontend/shared/utils/HAWCUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ class HAWCUtils {
});
}

static delRow(elt, hide = false) {
var scrollVal = $(elt).attr("scrolltop");
hide ? $(elt).addClass("hidden") : elt.remove();
static deleteRow(el, hide = false) {
const scrollVal = $(el).attr("scrolltop");
hide ? $(el).addClass("hidden") : el.remove();
$("body,html").animate({scrollTop: scrollVal}, 400);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Save
</button>
<button id="{{model}}-cancel" class="btn btn-sm btn-light" type='button'
onclick="window.app.HAWCUtils.delRow($(this).closest('.eco-edit-row'), hide=true)"><i
onclick="window.app.HAWCUtils.deleteRow($(this).closest('.eco-edit-row'), hide=true)"><i
class="fa fa-fw fa-times mr-1"></i>
Cancel</button>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Save
</button>
<button id="{{model}}-cancel" class="btn btn-sm btn-light" type='button'
onclick="window.app.HAWCUtils.delRow($(this).closest('.epiv2-edit-row'), hide=true)"><i
onclick="window.app.HAWCUtils.deleteRow($(this).closest('.epiv2-edit-row'), hide=true)"><i
class="fa fa-fw fa-times mr-1"></i>
Cancel</button>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3 class="py-2">Create Workflow</h3>
<button class="btn btn-light"
id="workflow-cancel"
type='button'
onclick="window.app.HAWCUtils.delRow($(this).closest('.workflow-edit-row'), hide=true)"
onclick="window.app.HAWCUtils.deleteRow($(this).closest('.workflow-edit-row'), hide=true)"
style="width: 10rem; height: 2rem;">
Cancel
</button>
Expand Down

0 comments on commit 4edbd84

Please sign in to comment.