]> nos-oignons.net Git - website.git/commitdiff
Correction des ids en double sur les graphes
authorLunar <lunar@anargeek.net>
Thu, 9 Jun 2016 07:06:25 +0000 (09:06 +0200)
committerLunar <lunar@anargeek.net>
Thu, 9 Jun 2016 07:06:25 +0000 (09:06 +0200)
assets/bw_graphs.js
assets/weights_graphs.js

index b9c3d9df5b54ba2ba1c66054e38209170837ea44..08d9fe5c61b732d3e015842a01c36c27f1a79466 100644 (file)
@@ -85,10 +85,10 @@ BwDrawer.draw_bandwidth_graph = function(raw_data, selector, period) {
     var radio = div.append("input")
       .attr("type", "radio")
       .attr("name", "period")
-      .attr("id", "period_" + p.id)
+      .attr("id", "bw_period_" + p.id)
       .on("click", function() { update_period(p.id); });
     div.append("label")
-      .attr("for", "period_" + p.id)
+      .attr("for", "bw_period_" + p.id)
       .text(p.label);
     if (p.id == BwDrawer.periods[0].id) {
       radio.attr("checked", true);
index 7ed52dce990f09a11872bb7d776a6e1ac87b8ef4..943111ff64bbdcc326afb57efccdf6bc8b4c48bf 100644 (file)
@@ -114,10 +114,10 @@ WeightsDrawer.prototype.draw_weights_graph = function(raw_data) {
     var radio = div.append("input")
       .attr("type", "radio")
       .attr("name", "period")
-      .attr("id", "period_" + p.id)
+      .attr("id", "weights_period_" + p.id)
       .on("click", function() { drawer.update_period(p.id); });
     div.append("label")
-      .attr("for", "period_" + p.id)
+      .attr("for", "weights_period_" + p.id)
       .text(p.label);
     if (p.id == WeightsDrawer.periods[0].id) {
       radio.attr("checked", true);