enabled resizing of plot

This commit is contained in:
Steffen Vogel 2010-11-07 23:08:08 +01:00
parent 2c02c287ee
commit 9b30b6645e
2 changed files with 9 additions and 7 deletions

View file

@ -40,7 +40,7 @@
<div id="content">
<div id="plot">
<div id="flot"></div>
<div id="overlay">Test</div>
<div id="overlay"></div>
</div>
<div id="accordion">
@ -87,7 +87,7 @@
</thead>
<tbody>
<tr>
<td><label for="refresh"><img src="images/arrow_refresh.png" alt="" /> Automatisch aktualisieren (ms)</label></td>
<td><label for="refresh"><img src="images/arrow_refresh.png" alt="" /> Automatisch aktualisieren</label></td>
<td><input type="checkbox" id="refresh" /></td>
<td></td>
</tr>

View file

@ -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();
});