Example #1
0
  load_saved_query: function(obj) {
    var that = this;
    var done = _.after(2, function() {
      set_query(obj);

      handle_query_results(obj.results.query);
      handle_compare_results(obj.results.compare);
      that.set_dom_from_input(obj.input);

    });

    // Gotta wait for certain components...
    component.load("selector", done);
    component.load("multiselect", done);
  },
Example #2
0
  load_saved_query: function(obj) {
    var that = this;
    var done = _.after(2, function() {
      set_query(obj);

      handle_query_results(obj.results.query);
      handle_compare_results(obj.results.compare);
      that.set_dom_from_input(obj.input);

      views.show_query_details(obj.clientid, obj, true /* show client timestamp */);
    });

    // Gotta wait for certain components...
    component.load("selector", done);
    component.load("multiselect", done);
  },