setTimeout is not needed to override drawRevisionGraph function

This commit is contained in:
mrliptontea
2015-03-19 09:53:21 +01:00
parent 7f03565012
commit 26ba4e1701
2 changed files with 7 additions and 10 deletions

View File

@@ -146,15 +146,12 @@ $(function()
{
"use strict";
setTimeout(function()
if (window.drawRevisionGraph)
{
if (window.drawRevisionGraph)
{
// override Redmine's function
window.drawRevisionGraph = PurpleMine.RevisionGraph;
// make graph redraw itself
$(window).resize();
}
}, 0);
// override Redmine's function
window.drawRevisionGraph = PurpleMine.RevisionGraph;
// make graph redraw itself
$(window).resize();
}
});