Skip to content

Business intelligence made simple

Fixed results

Andrew Kanefeb42a9512da
diff --git a/app/views/blazer/queries/_form.html.erb b/app/views/blazer/queries/_form.html.erb
index 808c7627..4666b506 100644
--- a/app/views/blazer/queries/_form.html.erb
+++ b/app/views/blazer/queries/_form.html.erb
@@ -60,7 +60,7 @@
<div id="results">
<p class="text-muted" v-if="running">Loading...</p>
- <div v-html="results" v-if="!running"></div>
+ <div id="results-html" v-if="!running"></div>
</div>
</div>
@@ -94,7 +94,7 @@
runQuery(data, function (data) {
_this.running = false
- _this.results = data
+ _this.showResults(data)
errorLine = _this.getErrorLine()
if (errorLine) {
@@ -105,7 +105,7 @@
}
}, function (data) {
_this.running = false
- _this.results = data
+ _this.showResults(data)
})
},
cancel: function(e) {
@@ -195,6 +195,14 @@
}
return errorLine
}
+ },
+ showResults(data) {
+ // can't do it the Vue way due to script tags in results
+ // this.results = data
+
+ Vue.nextTick(function () {
+ $("#results-html").html(data)
+ })
}
},
mounted: function() {