From c0273d887a5df15f4d0ab954092a1715fd2082ec Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 22 Feb 2013 15:50:22 -0700 Subject: [PATCH] fixed visual inconsistencies in the stringquery panel when using multiple queries --- panels/stringquery/editor.html | 2 +- panels/stringquery/module.html | 38 ++++++++++++++++------------------ panels/stringquery/module.js | 6 ++++++ 3 files changed, 25 insertions(+), 21 deletions(-) diff --git a/panels/stringquery/editor.html b/panels/stringquery/editor.html index 847e50112a5..6a505dfb340 100644 --- a/panels/stringquery/editor.html +++ b/panels/stringquery/editor.html @@ -1,6 +1,6 @@
- +
diff --git a/panels/stringquery/module.html b/panels/stringquery/module.html index c2953aaec97..d6d88242d38 100644 --- a/panels/stringquery/module.html +++ b/panels/stringquery/module.html @@ -1,26 +1,24 @@ -
-
-
- - - - - +
+ + + + + + + +
+
+
+ + + + +
+

+
-
-
-
- - - - -
-

-
-
-
\ No newline at end of file diff --git a/panels/stringquery/module.js b/panels/stringquery/module.js index 2a19a97e546..76de35ffe0f 100644 --- a/panels/stringquery/module.js +++ b/panels/stringquery/module.js @@ -35,8 +35,14 @@ angular.module('kibana.stringquery', []) } } + $scope.set_multi = function(multi) { + $scope.panel.query = multi ? + new Array($scope.panel.query) : $scope.panel.query[0]; + } + $scope.remove_query = function(index) { $scope.panel.query.splice(index,1); + console.log($scope.panel.query) } $scope.init();