Просмотр исходного кода

fix in to not render multiple labels

Peter Holmberg 7 лет назад
Родитель
Сommit
9163db02b4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/vendor/flot/jquery.flot.gauge.js

+ 1 - 1
public/vendor/flot/jquery.flot.gauge.js

@@ -583,7 +583,7 @@
          * @param  {Number} [a] the angle of the value drawn
          */
         function drawText(x, y, id, text, textOptions, a) {
-            var span = $("." + id, placeholder);
+            var span = $(placeholder).find("#" + id);
             var exists = span.length;
             if (!exists) {
                 span = $("<span></span>")