diff options
Diffstat (limited to 'MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js')
-rw-r--r-- | MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js b/MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js index b0ec95fd..ca12fe16 100644 --- a/MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js +++ b/MLEB/Translate/resources/js/ext.translate.translationstats.embedded.js @@ -57,11 +57,8 @@ $( function () { // Create graph and options instances, then display loader function initGraph( $graphContainer ) { - var graphBuilder, - graphOptions; - - graphOptions = new EmbeddedHandler( $graphContainer ); - graphBuilder = new mw.translate.TranslationStatsGraphBuilder( + var graphOptions = new EmbeddedHandler( $graphContainer ); + var graphBuilder = new mw.translate.TranslationStatsGraphBuilder( $graphContainer, graphOptions.getAllOptions() ); graphBuilder.showLoading(); |