Author: eallen
Date: 2009-03-30 17:07:32 -0400 (Mon, 30 Mar 2009)
New Revision: 3238
Modified:
mgmt/trunk/cumin/python/cumin/visualizations.strings
Log:
Made slot vis fullpageable
Modified: mgmt/trunk/cumin/python/cumin/visualizations.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-03-30 21:06:42 UTC (rev
3237)
+++ mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-03-30 21:07:32 UTC (rev
3238)
@@ -25,6 +25,10 @@
slot_zoom_initialized = false;
slot_center_index = -1;
+ this.notify = function(fullpage, size) {
+ slot_clip_size = size;
+ this.img_loaded(document.images[slot_current_id]);
+ }
this.pan_left = function () {
if (slot_clip_left == 0) return;
var now = new Date();
@@ -233,7 +237,7 @@
branch.zy = slot_clip_top;
src = branch.marshal();
- src = refreshTime(src);
+ src = cumin.refreshTime(src);
oImg.src = src;
}
@@ -275,7 +279,7 @@
function update_png() {
stop_auto_updates();
- updateChart(slot_current_id, null);
+ cumin.updateChart(slot_current_id, null);
}
function set_pan(id, which, value, fn) {
@@ -616,7 +620,6 @@
}
}
-
}())
var clicks;
@@ -986,7 +989,7 @@
}
[SlotMap.html]
-<div id="slot_visualization">
+<div id="slot_visualization" class="fullpageable">
<h2>{title}</h2>
<div id="slot_controls">
<div id="zoom_text">Zoom</div><div
id="zoom_levels"><div
id="zoom_pos"></div></div><div
style="clear:left;"><!-- --></div>
@@ -1014,6 +1017,9 @@
var slot_job_index = "{job_index_param}";
var slot_map_info = {size: 0, width: 0, height: 0, count: 0, rows: 0, cols: 0};
var slot_clip_size = {slot_clip_size};
+ var original_clip_size = slot_clip_size;
+ $('slot_visualization').onfullpage = function (width) { vis.notify(true,
width); };
+ $('slot_visualization').onrestore = function () { vis.notify(false,
original_clip_size); };
var oGlass = document.getElementById("slot_glass");
if (oGlass) {
oGlass.onmousedown = vis.downGlass;
@@ -1127,7 +1133,7 @@
top: 0;
left: 0.5em;
visibility: hidden;
- z-index: 101;
+ z-index: 301;
}
div.slot_container {
Show replies by date