diff --git a/src/app/directives/grafanaPanel.js b/src/app/directives/grafanaPanel.js index d73eb2bb0b9..4c7a0562b58 100644 --- a/src/app/directives/grafanaPanel.js +++ b/src/app/directives/grafanaPanel.js @@ -37,19 +37,11 @@ function (angular, $, config) { var getter = $parse(attr.type), panelType = getter($scope); var newScope = $scope.$new(); - $scope.kbnJqUiDraggableOptions = { - revert: 'invalid', - helper: function() { - return $('
'); - }, - placeholder: 'keep' - }; - // compile the module and uncloack. We're done function loadModule($module) { $module.appendTo(elem); elem.wrap(container); - /* jshint indent:false */ + $compile(elem.contents())(newScope); elem.removeClass("ng-cloak"); @@ -81,7 +73,6 @@ function (angular, $, config) { $module.first().find('.panel-header').nextAll().wrapAll(content); loadModule($module); }); - } }; }); diff --git a/src/app/panels/graph/module.html b/src/app/panels/graph/module.html index 6f6b0d92a6c..f9bf9ebc6f4 100644 --- a/src/app/panels/graph/module.html +++ b/src/app/panels/graph/module.html @@ -24,7 +24,7 @@ -