mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
small cleanup of unused code
This commit is contained in:
parent
6c71754e51
commit
9e7c55728f
@ -44,7 +44,7 @@ function (angular, $, config, _) {
|
|||||||
$scope.setupDashboard = function(event, dashboardData) {
|
$scope.setupDashboard = function(event, dashboardData) {
|
||||||
$rootScope.performance.dashboardLoadStart = new Date().getTime();
|
$rootScope.performance.dashboardLoadStart = new Date().getTime();
|
||||||
$rootScope.performance.panelsInitialized = 0;
|
$rootScope.performance.panelsInitialized = 0;
|
||||||
$rootScope.performance.panelsRendered= 0;
|
$rootScope.performance.panelsRendered = 0;
|
||||||
|
|
||||||
$scope.dashboard = dashboardSrv.create(dashboardData);
|
$scope.dashboard = dashboardSrv.create(dashboardData);
|
||||||
$scope.dashboardViewState = dashboardViewStateSrv.create($scope);
|
$scope.dashboardViewState = dashboardViewStateSrv.create($scope);
|
||||||
@ -93,14 +93,6 @@ function (angular, $, config, _) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.panel_path =function(type) {
|
|
||||||
if(type) {
|
|
||||||
return 'app/panels/'+type.replace(".","/");
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.edit_path = function(type) {
|
$scope.edit_path = function(type) {
|
||||||
var p = $scope.panel_path(type);
|
var p = $scope.panel_path(type);
|
||||||
if(p) {
|
if(p) {
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
<div ng-include="'app/partials/panelgeneral.html'"></div>
|
|
||||||
<div ng-if="!panelMeta.fullEditorTabs" ng-include="edit_path(panel.type)"></div>
|
|
||||||
<div ng-repeat="tab in panelMeta.editorTabs">
|
|
||||||
<h5>{{tab.title}}</h5>
|
|
||||||
<div ng-include="tab.src"></div>
|
|
||||||
</div>
|
|
@ -18,8 +18,8 @@ function(angular, $) {
|
|||||||
keyboardManager.unbind('ctrl+s');
|
keyboardManager.unbind('ctrl+s');
|
||||||
keyboardManager.unbind('ctrl+r');
|
keyboardManager.unbind('ctrl+r');
|
||||||
keyboardManager.unbind('ctrl+z');
|
keyboardManager.unbind('ctrl+z');
|
||||||
|
keyboardManager.unbind('esc');
|
||||||
});
|
});
|
||||||
keyboardManager.unbind('esc');
|
|
||||||
|
|
||||||
keyboardManager.bind('ctrl+f', function() {
|
keyboardManager.bind('ctrl+f', function() {
|
||||||
scope.emitAppEvent('show-dash-editor', { src: 'app/partials/search.html' });
|
scope.emitAppEvent('show-dash-editor', { src: 'app/partials/search.html' });
|
||||||
|
Loading…
Reference in New Issue
Block a user