From: opi Date: Mon, 6 Jun 2016 08:58:46 +0000 (+0200) Subject: Ajout id/class sur les forms des graphs. X-Git-Url: https://nos-oignons.net/gitweb/website.git/commitdiff_plain/21710dbc940be969be1b4cdcd6005af029a0e422 Ajout id/class sur les forms des graphs. --- diff --git a/assets/bw_graphs.js b/assets/bw_graphs.js index 6c0f05f..b9c3d9d 100644 --- a/assets/bw_graphs.js +++ b/assets/bw_graphs.js @@ -78,6 +78,7 @@ BwDrawer.draw_bandwidth_graph = function(raw_data, selector, period) { .attr("transform", "translate(" + BwDrawer.margin.left + "," + BwDrawer.margin.top + ")"); var form = d3.select(selector).append("form") + .attr("class", "graph-period") .attr("action", "#"); BwDrawer.periods.forEach(function(p) { var div = form.append("div"); diff --git a/assets/weights_graphs.js b/assets/weights_graphs.js index 915a8b8..7ed52dc 100644 --- a/assets/weights_graphs.js +++ b/assets/weights_graphs.js @@ -83,6 +83,7 @@ WeightsDrawer.prototype.draw_weights_graph = function(raw_data) { }); var form_source = d3.select(drawer.selector).append("form") + .attr("id", "weight-sources") .attr("action", "#"); WeightsDrawer.sources.forEach(function(s) { var div = form_source.append("div"); @@ -106,6 +107,7 @@ WeightsDrawer.prototype.draw_weights_graph = function(raw_data) { .attr("transform", "translate(" + WeightsDrawer.margin.left + "," + WeightsDrawer.margin.top + ")"); var form_period = d3.select(drawer.selector).append("form") + .attr("class", "graph-period") .attr("action", "#"); WeightsDrawer.periods.forEach(function(p) { var div = form_period.append("div");