Mitsuhiro Tanda 10 лет назад
Родитель
Сommit
7229c59b8e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      public/app/directives/misc.js

+ 1 - 0
public/app/directives/misc.js

@@ -13,6 +13,7 @@ function (angular, kbn) {
         link: function(scope, elem, attrs) {
           var _t = '<i class="grafana-tip fa fa-'+(attrs.icon||'question-circle')+'" bs-tooltip="\''+
             kbn.addslashes(elem.text())+'\'"></i>';
+          _t = _t.replace(/{/g, '\\{').replace(/}/g, '\\}');
           elem.replaceWith($compile(angular.element(_t))(scope));
         }
       };