diff --git a/common/css/main.css b/common/css/main.css index 08e0e982693..0278db77224 100644 --- a/common/css/main.css +++ b/common/css/main.css @@ -17,7 +17,24 @@ .panel-error { opacity: 0.9; position:absolute; - z-index: 99999; + z-index: 2000; +} + +span.editlink { + position: absolute; + right: 5px; + z-index: 800; + display: none; +} + +.panel:hover span.editlink { + display: block; + opacity: 0.3; +} + +.panel span.editlink:hover { + display: block; + opacity: 1; } .pointer { @@ -54,8 +71,7 @@ } .remove:hover { - color: #A60000; - text-decoration: line-through; + background-color: #A60000; } .typeahead { z-index: 1051; } \ No newline at end of file diff --git a/js/directives.js b/js/directives.js index 396e755a053..a1024339fd2 100644 --- a/js/directives.js +++ b/js/directives.js @@ -3,22 +3,26 @@ 'use strict'; angular.module('kibana.directives', []) -.directive('panel', function($compile) { +.directive('kibanaPanel', function($compile) { return { - restrict: 'A', - compile: function(element, attrs) { - return function(scope, element, attrs) { - scope.$watch(function () { - return (attrs.panel && scope.index) ? true : false; - }, function (ready) { - if (ready) { - element.html($compile("
")(scope)) - } - }); - } + restrict: 'E', + link: function(scope, elem, attrs) { + var template = ''+ + '{{hits}}
-{{panel.content}}
-