From 0f150a69014dd6d3a4c963e09d66739833915111 Mon Sep 17 00:00:00 2001 From: "smain@google.com" Date: Thu, 19 May 2016 15:08:51 -0700 Subject: [PATCH] fix dashboards page. the src attributes were being modified by the devsite parser, so i renamed those attributes then rename them again at runtime. bug: 28801246 Change-Id: I34d0dff8fa7f430226dd1d12fccb2cdbeda365db --- docs/html/about/dashboards/index.jd | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/html/about/dashboards/index.jd b/docs/html/about/dashboards/index.jd index 227c7758f5977..5990abd6ea95e 100644 --- a/docs/html/about/dashboards/index.jd +++ b/docs/html/about/dashboards/index.jd @@ -384,7 +384,7 @@ $(document).ready(function(){ }); // create chart image - var $chart = $(''); + var $chart = $(''); // stack up and insert the elements $divtable.append($table); @@ -451,9 +451,9 @@ $(document).ready(function(){ $table.append($tr); // create charts - var $sizechart = $(''); - var $densitychart = $(''); // stack up and insert the elements @@ -461,6 +461,16 @@ $(document).ready(function(){ $("#screens-chart").append($div); }); + // TODO (akassay): Remove this. + // I replaced the src attributes in the javascript above with data-dac-src + // so the value would not be molested by the DevSite parser. So this code here + // moves that src value into a real src attribute at runtime. This should be + // removed once we either move this script out of the content body or update + // the parser to not modify src attributes in