diff --git a/js/directives.js b/js/directives.js
index 0acde7536a9e9..73986619ad14e 100644
--- a/js/directives.js
+++ b/js/directives.js
@@ -68,5 +68,15 @@ angular.module('kibana.directives', [])
});
}
};
-});
+})
+.directive('ngBlur', ['$parse', function($parse) {
+ return function(scope, element, attr) {
+ var fn = $parse(attr['ngBlur']);
+ element.bind('blur', function(event) {
+ scope.$apply(function() {
+ fn(scope, {$event:event});
+ });
+ });
+ }
+}]);
diff --git a/panels/filtering/module.html b/panels/filtering/module.html
index 204e02c787d58..3a79da21326cc 100644
--- a/panels/filtering/module.html
+++ b/panels/filtering/module.html
@@ -39,9 +39,9 @@
{{filterSrv.list[id].type}}
{{filterSrv.list[id].mandate}}
-
-
-
+
+
+
diff --git a/panels/table/module.js b/panels/table/module.js
index 9aa43149da151..f591192815186 100644
--- a/panels/table/module.js
+++ b/panels/table/module.js
@@ -110,7 +110,7 @@ angular.module('kibana.table', [])
var query;
// This needs to be abstracted somewhere
if(_.isArray(value)) {
- query = field+":(" + _.map(value,function(v){return "\""+v+"\""}).join(",") + ")";
+ query = field+":(" + _.map(value,function(v){return angular.toJson("\""+v+"\"")}).join(",") + ")";
} else {
query = field+":"+angular.toJson(value);
}