Skip to content

Business intelligence made simple

Reduced jQuery on dashboard form [skip ci]

Andrew Kane30b3c654e80c
diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erb
index 5f438c57..3d0be73c 100644
--- a/app/views/blazer/dashboards/_form.html.erb
+++ b/app/views/blazer/dashboards/_form.html.erb
@@ -57,7 +57,7 @@
}
$(queriesList).on("click", ".glyphicon-remove", function () {
- $(this).parent("li").remove()
+ this.closest("li").remove()
if (queriesList.querySelectorAll("li").length == 0) {
queriesGroup.hide()