From 9b30b6645e9b74d6400346ea1012f709eed1cc83 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 7 Nov 2010 23:08:08 +0100 Subject: [PATCH] enabled resizing of plot --- frontend/index.html | 4 ++-- frontend/javascripts/init.js | 12 +++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) 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(); -});