Explorar el Código

Fixing unsafe html binding

Rashid Khan hace 12 años
padre
commit
3f8b1651fd
Se han modificado 2 ficheros con 1 adiciones y 3 borrados
  1. 0 2
      src/app/services/dashboard.js
  2. 1 1
      src/index.html

+ 0 - 2
src/app/services/dashboard.js

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

+ 1 - 1
src/index.html

@@ -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">