mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
Merge remote-tracking branch 'grafana/master'
This commit is contained in:
commit
05fc34533f
@ -24,14 +24,14 @@ function ($, angular, _) {
|
||||
$tooltip.appendTo(document.body);
|
||||
|
||||
if (opts.compile) {
|
||||
angular.element(document).injector().invoke(function($compile, $rootScope) {
|
||||
angular.element(document).injector().invoke(["$compile", "$rootScope", function($compile, $rootScope) {
|
||||
var tmpScope = $rootScope.$new(true);
|
||||
_.extend(tmpScope, opts.scopeData);
|
||||
|
||||
$compile($tooltip)(tmpScope);
|
||||
tmpScope.$digest();
|
||||
//tmpScope.$destroy();
|
||||
});
|
||||
tmpScope.$destroy();
|
||||
}]);
|
||||
}
|
||||
|
||||
width = $tooltip.outerWidth(true);
|
||||
|
@ -25,14 +25,14 @@ function (angular, _, config) {
|
||||
}
|
||||
|
||||
backendSrv.search(query).then(function(results) {
|
||||
$scope.searchHits = results.dashboards;
|
||||
$scope.searchHits = results;
|
||||
$scope.filterHits();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.filterHits = function() {
|
||||
$scope.filteredHits = _.reject($scope.searchHits, function(dash) {
|
||||
return _.findWhere($scope.playlist, {slug: dash.slug});
|
||||
return _.findWhere($scope.playlist, {uri: dash.uri});
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,7 @@ function (angular, _, kbn) {
|
||||
angular.element(window).unbind('resize');
|
||||
var dash = self.dashboards[self.index % self.dashboards.length];
|
||||
|
||||
$location.url('dashboard/db/' + dash.slug);
|
||||
$location.url('dashboard/' + dash.uri);
|
||||
|
||||
self.index++;
|
||||
self.cancelPromise = $timeout(self.next, self.interval);
|
||||
|
Loading…
Reference in New Issue
Block a user