Author: croberts Date: 2011-12-01 15:31:58 +0000 (Thu, 01 Dec 2011) New Revision: 5157
Modified: branches/noflash/cumin/resources/app.js Log: The new charts will now respect the "Resume updates" mode and will stop updating when all other page updates are paused. Updates to the charts will resume with the rest of the page updates (after hitting "resume updates").
Modified: branches/noflash/cumin/resources/app.js =================================================================== --- branches/noflash/cumin/resources/app.js 2011-11-30 20:53:45 UTC (rev 5156) +++ branches/noflash/cumin/resources/app.js 2011-12-01 15:31:58 UTC (rev 5157) @@ -456,9 +456,12 @@ function after that data is fetched */ drawSingleChart = function(id) { - var jsonurl = $(id).getParent().getElements('a')[chart_href].get('href'); - var passback = ""; - wooly.setIntervalUpdate(jsonurl, stathandler, 0, passback, true); + // if the "resume updates" is displayed, we don't want to do updates. + if($('shock').style.display != "undefined" && $('shock').style.display != "block") { + var jsonurl = $(id).getParent().getElements('a')[chart_href].get('href'); + var passback = ""; + wooly.setIntervalUpdate(jsonurl, stathandler, 0, passback, true); + } }
/*
cumin-developers@lists.fedorahosted.org