Merge remote-tracking branch 'grafana/master'

This commit is contained in:
Sébastien Bouchex Bellomié 2015-06-26 20:21:32 +02:00
commit 05fc34533f
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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});
});
};

View File

@ -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);