Skip to content

Commit

Permalink
Merge pull request #245 from rashidkpc/master
Browse files Browse the repository at this point in the history
Re-added query history; clean up
  • Loading branch information
Rashid Khan committed Jul 22, 2013
2 parents 8927a04 + 5158cac commit c9768f5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions panels/query/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,14 @@ angular.module('kibana.query', [])
};

$scope.refresh = function(query) {
update_history(_.pluck($scope.queries.list,'query'));
$rootScope.$broadcast('refresh');
};

$scope.render = function(query) {
$rootScope.$broadcast('render');
};

$scope.add_query = function() {
if (_.isArray($scope.panel.query)) {
$scope.panel.query.push("");
} else {
$scope.panel.query = new Array($scope.panel.query);
$scope.panel.query.push("");
}
};

var update_history = function(query) {
if($scope.panel.remember > 0) {
$scope.panel.history = _.union(query.reverse(),$scope.panel.history);
Expand Down

0 comments on commit c9768f5

Please sign in to comment.