Fixing unsafe html binding

This commit is contained in:
Rashid Khan 2013-11-22 22:57:10 -08:00
parent 7256d41d3f
commit 3f8b1651fd
2 changed files with 1 additions and 3 deletions

View File

@ -158,8 +158,6 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
}
} else {
self.indices = [self.current.index.default];
console.log(self.indices);
console.log('sending refresh');
querySrv.resolve().then(function(){$rootScope.$broadcast('refresh');});
}
};

View File

@ -29,7 +29,7 @@
<div ng-repeat='alert in dashAlerts.list' class="alert-{{alert.severity}} dashboard-notice" ng-show="$last">
<button type="button" class="close" ng-click="dashAlerts.clear(alert)" style="padding-right:50px">&times;</button>
<strong>{{alert.title}}</strong> <span ng-bind-html-unsafe='alert.text'></span> <div style="padding-right:10px" class='pull-right small'> {{$index + 1}} alert(s) </div>
<strong>{{alert.title}}</strong> <span ng-bind-html='alert.text'></span> <div style="padding-right:10px" class='pull-right small'> {{$index + 1}} alert(s) </div>
</div>
<div class="navbar navbar-static-top">
<div class="navbar-inner">