anchor.diff:      }
   
       $("#results").html('<p class="text-muted">Loading...</p>');
  -    if (xhr) {
  -      xhr.abort();
  -    }
   
       var data = $.extend({}, params, {statement: getSQL(), data_source: $("#query_data_source").val()});
   
       xhr = runQuery(data, function (data) {
  +      queryDone()
  +
         $("#results").html(data);
   
         error_line = getErrorLine();
  
positive.code:           updatePreviewSelect();
            $("#query_data_source").selectize().change(updatePreviewSelect);
          </script>
          <%= link_to "Run", "#", class: "btn btn-info", id: "run", style: "vertical-align: top;" %>
        </div>
      </div>
      <div class="col-xs-4">
  
negative.code:         editor.gotoLine(error_line, 0, true);
          editor.focus();
        }
      }, function (data) {
        // TODO show error
        queryDone()
      });
    });
  
  