From 9a34a587cc1958a5792517730af41fba95991e57 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Thu, 21 Jul 2016 14:53:34 +0200 Subject: [PATCH] bug global_tabvar seems solved: Caused by a race condition, Just switched two functions execution --- var/www/static/js/indexjavascript.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/var/www/static/js/indexjavascript.js b/var/www/static/js/indexjavascript.js index 1219ffc3..7fd463f7 100644 --- a/var/www/static/js/indexjavascript.js +++ b/var/www/static/js/indexjavascript.js @@ -1,3 +1,17 @@ +function initfunc( csvay, scroot) { + window.csv = csvay; + window.scroot = scroot; +}; + +function update_values() { + $SCRIPT_ROOT = window.scroot ; + $.getJSON($SCRIPT_ROOT+"/_stuff", + function(data) { + window.glob_tabvar = data; + }); + }; + + // Plot and update the number of processed pastes $(function() { var data = [];