Author: eallen
Date: 2009-03-27 10:49:02 -0400 (Fri, 27 Mar 2009)
New Revision: 3231
Modified:
mgmt/trunk/cumin/python/cumin/visualizations.strings
Log:
session is now under wooly
Modified: mgmt/trunk/cumin/python/cumin/visualizations.strings
===================================================================
--- mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-03-27 14:48:23 UTC (rev
3230)
+++ mgmt/trunk/cumin/python/cumin/visualizations.strings 2009-03-27 14:49:02 UTC (rev
3231)
@@ -227,10 +227,12 @@
var oImg = document.images[slot_current_id];
if (oImg) {
var src = oImg.src;
- src = replace_value(src, "zl", level, ";");
- src = replace_value(src, "zx", slot_clip_left, ";");
- src = replace_value(src, "zy", slot_clip_top, ";");
-
+ var branch = wooly.session.branch(src);
+ branch.zl = level;
+ branch.zx = slot_clip_left;
+ branch.zy = slot_clip_top;
+ src = branch.marshal();
+
src = refreshTime(src);
oImg.src = src;
}
@@ -559,13 +561,9 @@
}
function do_info_request(index) {
- args = slot_info_url.split("?");
- var session = get_value(args[1], "session", ";")
- sess = unescape(session);
- sess = sess + ";" + slot_info_index + "=" + index;
- sess = escape(sess);
- var newreq = replace_value(slot_info_url, "session", sess,
";");
-
+ var branch = wooly.session.branch(slot_info_url);
+ branch.session[slot_info_index] = index;
+ var newreq = branch.marshal();
wooly.directUpdate(newreq, got_slot_info, 0, {index: index});
}
@@ -590,7 +588,7 @@
return;
}
- promote_to_body(oInfo); // so position is absolute to entire page
+ document.body.appendChild(oInfo); // so position is absolute to entire page
oInfo.style.left = "-1000px";
oInfo.style.visibility = "hidden";
@@ -807,16 +805,6 @@
}
}
-/* move an element to the body to break out of any relative positioning */
-function promote_to_body(obj) {
- if (obj) {
- var bodyList = document.getElementsByTagName("body");
- if (bodyList) {
- bodyList[0].appendChild(obj);
- }
- }
-}
-
[SlotMap.css]
div#slot_hover {
visibility: hidden;
@@ -1062,8 +1050,8 @@
oWait.style.visibility = "hidden";
oWait.style.display = "block";
- promote_to_body(oGlass); // so it covers the entire page
- promote_to_body(oWait); // so it can be centered on the page
+ document.body.appendChild(oGlass); // so it covers the entire page
+ document.body.appendChild(oWait); // so it can be centered on the page
var cp = get_center_point();
oWait.style.left = (cp.x - (oWait.offsetWidth / 2)) + "px";
Show replies by date