| 1 |
--- socialcalctableeditor.js.orig 2008-11-12 02:34:36.000000000 -0800
|
| 2 |
+++ socialcalctableeditor.js 2008-11-12 02:49:41.000000000 -0800
|
| 3 |
@@ -838,7 +838,7 @@ SocialCalc.ProcessEditorColsizeMouseDown
|
| 4 |
editor.context.colwidth[mouseinfo.mouseresizecolnum] + '</div></td></tr></table>';
|
| 5 |
SocialCalc.setStyles(sizedisplay.firstChild.lastChild.firstChild.childNodes[0], "filter:alpha(opacity=85);opacity:.85;"); // so no warning msg with Firefox about filter
|
| 6 |
|
| 7 |
- editor.toplevel.appendChild(sizedisplay);
|
| 8 |
+ document.body.appendChild(sizedisplay);
|
| 9 |
|
| 10 |
// Event code from JavaScript, Flanagan, 5th Edition, pg. 422
|
| 11 |
if (document.addEventListener) { // DOM Level 2 -- Firefox, et al
|
| 12 |
@@ -936,7 +936,7 @@ SocialCalc.FinishColsize = function() {
|
| 13 |
var editor = mouseinfo.editor;
|
| 14 |
if (!editor) return;
|
| 15 |
|
| 16 |
- editor.toplevel.removeChild(mouseinfo.mouseresizedisplay);
|
| 17 |
+ mouseinfo.mouseresizedisplay.parentNode.removeChild(mouseinfo.mouseresizedisplay);
|
| 18 |
mouseinfo.mouseresizedisplay = null;
|
| 19 |
|
| 20 |
editor.FitToEditTable();
|
| 21 |
@@ -2457,7 +2457,7 @@ SocialCalc.InputEcho = function(editor)
|
| 22 |
|
| 23 |
SocialCalc.DragRegister(this.main, true, true, null);
|
| 24 |
|
| 25 |
- editor.toplevel.appendChild(this.main);
|
| 26 |
+ document.body.appendChild(this.main);
|
| 27 |
|
| 28 |
}
|
| 29 |
|
| 30 |
@@ -2646,7 +2646,7 @@ SocialCalc.CreateTableControl = function
|
| 31 |
if (scc.TCendcapClass) control.endcap.className = scc.TCendcapClass;
|
| 32 |
AssignID(control.editor, control.endcap, "endcap"+vh);
|
| 33 |
|
| 34 |
- control.main.appendChild(control.endcap);
|
| 35 |
+ document.body.appendChild(control.endcap);
|
| 36 |
|
| 37 |
control.paneslider = document.createElement("div");
|
| 38 |
s = control.paneslider.style;
|
| 39 |
@@ -2669,7 +2669,7 @@ SocialCalc.CreateTableControl = function
|
| 40 |
|
| 41 |
SocialCalc.DragRegister(control.paneslider, control.vertical, !control.vertical, functions);
|
| 42 |
|
| 43 |
- control.main.appendChild(control.paneslider);
|
| 44 |
+ document.body.appendChild(control.paneslider);
|
| 45 |
|
| 46 |
control.lessbutton = document.createElement("div");
|
| 47 |
s = control.lessbutton.style;
|
| 48 |
@@ -2692,7 +2692,7 @@ SocialCalc.CreateTableControl = function
|
| 49 |
|
| 50 |
SocialCalc.ButtonRegister(control.lessbutton, params, functions);
|
| 51 |
|
| 52 |
- control.main.appendChild(control.lessbutton);
|
| 53 |
+ document.body.appendChild(control.lessbutton);
|
| 54 |
|
| 55 |
control.morebutton = document.createElement("div");
|
| 56 |
s = control.morebutton.style;
|
| 57 |
@@ -2715,7 +2715,7 @@ SocialCalc.CreateTableControl = function
|
| 58 |
|
| 59 |
SocialCalc.ButtonRegister(control.morebutton, params, functions);
|
| 60 |
|
| 61 |
- control.main.appendChild(control.morebutton);
|
| 62 |
+ document.body.appendChild(control.morebutton);
|
| 63 |
|
| 64 |
control.scrollarea = document.createElement("div");
|
| 65 |
s = control.scrollarea.style;
|
| 66 |
@@ -2735,7 +2735,7 @@ SocialCalc.CreateTableControl = function
|
| 67 |
|
| 68 |
SocialCalc.ButtonRegister(control.scrollarea, params, functions);
|
| 69 |
|
| 70 |
- control.main.appendChild(control.scrollarea);
|
| 71 |
+ document.body.appendChild(control.scrollarea);
|
| 72 |
|
| 73 |
control.thumb = document.createElement("div");
|
| 74 |
s = control.thumb.style;
|
| 75 |
@@ -2760,7 +2760,7 @@ SocialCalc.CreateTableControl = function
|
| 76 |
hoverstyle: "backgroundImage:url("+imageprefix+"-thumb-"+vh+"h.gif)"};
|
| 77 |
SocialCalc.ButtonRegister(control.thumb, params, null); // give it button-like visual behavior
|
| 78 |
|
| 79 |
- control.main.appendChild(control.thumb);
|
| 80 |
+ document.body.appendChild(control.thumb);
|
| 81 |
|
| 82 |
return control.main;
|
| 83 |
|
| 84 |
@@ -2907,7 +2907,7 @@ SocialCalc.TCPSDragFunctionStart = funct
|
| 85 |
draginfo.trackingline.style.left = (editor.colpositions[col] || editor.headposition.left)+"px";
|
| 86 |
}
|
| 87 |
|
| 88 |
- editor.griddiv.appendChild(draginfo.trackingline);
|
| 89 |
+ document.body.appendChild(draginfo.trackingline);
|
| 90 |
|
| 91 |
}
|
| 92 |
|
| 93 |
@@ -3000,7 +3000,7 @@ SocialCalc.TCPSDragFunctionStop = functi
|
| 94 |
editor.FitToEditTable();
|
| 95 |
editor.context.CalculateColWidthData();
|
| 96 |
|
| 97 |
- editor.griddiv.removeChild(draginfo.trackingline);
|
| 98 |
+ draginfo.trackingline.parentNode.removeChild(draginfo.trackingline);
|
| 99 |
|
| 100 |
editor.EditorRenderSheet();
|
| 101 |
|
| 102 |
@@ -3046,7 +3046,7 @@ SocialCalc.TCTDragFunctionStart = functi
|
| 103 |
}
|
| 104 |
|
| 105 |
|
| 106 |
- editor.toplevel.appendChild(draginfo.thumbstatus);
|
| 107 |
+ document.body.appendChild(draginfo.thumbstatus);
|
| 108 |
|
| 109 |
}
|
| 110 |
|
| 111 |
@@ -3138,7 +3138,7 @@ SocialCalc.TCTDragFunctionStop = functio
|
| 112 |
editor.FitToEditTable();
|
| 113 |
editor.context.CalculateColWidthData();
|
| 114 |
|
| 115 |
- editor.toplevel.removeChild(draginfo.thumbstatus);
|
| 116 |
+ draginfo.thumbstatus.parentNode.removeChild(draginfo.thumbstatus);
|
| 117 |
|
| 118 |
editor.EditorRenderSheet();
|
| 119 |
|