mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge remote-tracking branch 'origin/master' into develop
Conflicts: src/app/directives/grafanaPanel.js src/app/features/dashboard/dashboardCtrl.js
This commit is contained in:
commit
f817a8ca3c
@ -75,6 +75,11 @@ function (angular, app, _, $) {
|
|||||||
$button.focus();
|
$button.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$scope.$on('$destroy', function() {
|
||||||
|
$button.unbind();
|
||||||
|
typeahead.destroy();
|
||||||
|
});
|
||||||
|
|
||||||
$compile(elem.contents())($scope);
|
$compile(elem.contents())($scope);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -31,13 +31,6 @@ function (angular, $, config) {
|
|||||||
$scope.setupDashboard(dashboard);
|
$scope.setupDashboard(dashboard);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.registerWindowResizeEvent = function() {
|
|
||||||
angular.element(window).bind('resize', function() {
|
|
||||||
$timeout.cancel(resizeEventTimeout);
|
|
||||||
resizeEventTimeout = $timeout(function() { $scope.$broadcast('render'); }, 200);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.setupDashboard = function(dashboard) {
|
$scope.setupDashboard = function(dashboard) {
|
||||||
$rootScope.performance.dashboardLoadStart = new Date().getTime();
|
$rootScope.performance.dashboardLoadStart = new Date().getTime();
|
||||||
$rootScope.performance.panelsInitialized = 0;
|
$rootScope.performance.panelsInitialized = 0;
|
||||||
@ -123,5 +116,15 @@ function (angular, $, config) {
|
|||||||
$rootScope.$broadcast('render');
|
$rootScope.$broadcast('render');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.registerWindowResizeEvent = function() {
|
||||||
|
angular.element(window).bind('resize', function() {
|
||||||
|
$timeout.cancel(resizeEventTimeout);
|
||||||
|
resizeEventTimeout = $timeout(function() { $scope.$broadcast('render'); }, 200);
|
||||||
|
});
|
||||||
|
$scope.$on('$destroy', function() {
|
||||||
|
angular.element(window).unbind('resize');
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
5
src/vendor/bootstrap/bootstrap.js
vendored
5
src/vendor/bootstrap/bootstrap.js
vendored
@ -2050,6 +2050,11 @@
|
|||||||
.on('click', $.proxy(this.click, this))
|
.on('click', $.proxy(this.click, this))
|
||||||
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
||||||
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
.on('mouseleave', 'li', $.proxy(this.mouseleave, this))
|
||||||
|
},
|
||||||
|
|
||||||
|
destroy: function () {
|
||||||
|
this.$element.off().removeData('typeahead');
|
||||||
|
this.$menu.off();
|
||||||
}
|
}
|
||||||
|
|
||||||
, eventSupported: function(eventName) {
|
, eventSupported: function(eventName) {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<!-- build:js app/app.js -->
|
<!-- build:js app/app.js -->
|
||||||
<script src="[[.AppSubUrl]]/public/vendor/require/require.js"></script>
|
<script src="[[.AppSubUrl]]/public/vendor/require/require.js"></script>
|
||||||
<script src="[[.AppSubUrl]]/public/app/components/require.backend.js"></script>
|
<script src="[[.AppSubUrl]]/public/app/components/require.config.js"></script>
|
||||||
<!-- endbuild -->
|
<!-- endbuild -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user