Procházet zdrojové kódy

fix in to not render multiple labels

Peter Holmberg před 7 roky
rodič
revize
9163db02b4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
          * @param  {Number} [a] the angle of the value drawn
          */
          */
         function drawText(x, y, id, text, textOptions, a) {
         function drawText(x, y, id, text, textOptions, a) {
-            var span = $("." + id, placeholder);
+            var span = $(placeholder).find("#" + id);
             var exists = span.length;
             var exists = span.length;
             if (!exists) {
             if (!exists) {
                 span = $("<span></span>")
                 span = $("<span></span>")