diff --git a/frontend/index.html b/frontend/index.html index eb5add9..b8252be 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -40,7 +40,7 @@
-
Test
+
@@ -87,7 +87,7 @@ - + diff --git a/frontend/javascripts/init.js b/frontend/javascripts/init.js index 2ccb756..acab5f9 100644 --- a/frontend/javascripts/init.js +++ b/frontend/javascripts/init.js @@ -58,6 +58,13 @@ if ($.getUrlVar('debug')) { // executed on document loaded complete // this is where it all starts... $(document).ready(function() { + $(window).unload(function() { + vz.uuids.save(); + vz.options.save(); + }); + + $(window).resize(vz.drawPlot); + // parse uuids & options from cookie vz.uuids.load(); //vz.options.load(); @@ -79,8 +86,3 @@ $(document).ready(function() { vz.definitions.load(); vz.entities.loadDetails(); }); - -$(window).unload(function() { - vz.uuids.save(); - vz.options.save(); -});