Commit ac971566 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

embed popup in query editor

parent 1a3a767c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ FnordMetric.views.QueryPlayground = function() {
    FnordMetric.httpPost("/query", query_str, function(r, duration) {
      if (r.status == 200 && r.statusText == "OK") {
        var res = JSON.parse(r.response);
        FnordMetric.util.queryResultView().render(
        FnordMetric.util.queryResultView(query_str).render(
          result_pane, res, duration);
        updateLayout(editor_pane, result_pane, direction);
        renderExecutionInfo(duration, res.tables, result_pane);
+2 −2
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ if (FnordMetric.util === undefined) {
  FnordMetric.util = {};
}

FnordMetric.util.queryResultView = function() {
FnordMetric.util.queryResultView = function(query_str) {

  function renderChart(chart, elem) {
    elem.innerHTML = "";
@@ -35,7 +35,7 @@ FnordMetric.util.queryResultView = function() {
    controls.appendChild(controls_embed);
    controls_embed.onclick = function(e) {
      e.preventDefault();
      FnordMetric.util.embedPopup(elem).render()
      FnordMetric.util.embedPopup(elem, query_str).render()
    }

    var controls = document.createElement("div");