Improving javascript and Fixing minor curves drawing bug

Everything now is fully "dynamic"
This commit is contained in:
Starow 2014-08-12 14:00:00 +02:00
parent ef6bece82c
commit 8d6c2f4288
2 changed files with 30 additions and 6 deletions

View file

@ -17,6 +17,17 @@
<script type="text/javascript" src="{{ url_for('static', filename='js/dygraph-combined.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery.js') }}"></script>
<script src="{{ url_for('static', filename='js/jquery-1.4.2.js') }}"></script>
<script>
function update_values() {
$SCRIPT_ROOT = {{ request.script_root|tojson|safe }};
$.getJSON($SCRIPT_ROOT+"/_stuff",
function(data) {
window.glob_tabvar = data;
});
};
update_values();
</script>
</head>
<body>