Tryed to fix the glob_tabvar bug

This commit is contained in:
Mokaddem 2016-08-02 16:39:57 +02:00
parent 07ad13a439
commit 50d2848a40
2 changed files with 6 additions and 0 deletions

View file

@ -219,6 +219,11 @@ function create_queue_table() {
}
$(document).ready(function () {
if (typeof glob_tabvar == "undefined")
location.reload();
if (typeof glob_tabvar.row1 == "undefined")
location.reload();
var data = [];
var data2 = [];
var tmp_tab = [];

View file

@ -18,6 +18,7 @@
<script src="{{ url_for('static', filename='js/jquery.flot.js') }}"></script>
<script>
window.default_minute = {{ default_minute }};
window.glob_tabvar = []; // Avoid undefined
function update_values() {
$SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
$.getJSON($SCRIPT_ROOT+"/_stuff",