Skip to content

Business intelligence made simple

Fixed edit dashboard JavaScript [skip ci]

Andrew Kaneba3df5573470
diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erb
index c33dbb1b..af0d3cb2 100644
--- a/app/views/blazer/dashboards/_form.html.erb
+++ b/app/views/blazer/dashboards/_form.html.erb
@@ -46,6 +46,7 @@
}
},
mounted: function() {
+ var app = this
$("#query_id").selectize({
options: queries,
highlight: false,
@@ -74,6 +75,7 @@
Sortable.create($("#queries").get(0), {
onEnd: function(e) {
+ var app = window.app._component.data()
app.queries.splice(e.newIndex, 0, app.queries.splice(e.oldIndex, 1)[0])
}
})