From 63d288118a7802cb4db5c69cae5dc3303921ed0d Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 9 Jan 2005 15:10:12 +0000 Subject: [PATCH] Split up the Javascript stuff into static and non-static. This will reduce the size of each page somewhat. --- lib/javascript-static.js | 51 +++++++++++++++++++++++++++++ lib/javascript.php | 71 ++++++---------------------------------- 2 files changed, 61 insertions(+), 61 deletions(-) create mode 100644 lib/javascript-static.js diff --git a/lib/javascript-static.js b/lib/javascript-static.js new file mode 100644 index 0000000000..1e7a97e819 --- /dev/null +++ b/lib/javascript-static.js @@ -0,0 +1,51 @@ +function popUpProperties(inobj) { + op = window.open(); + op.document.open('text/plain'); + for (objprop in inobj) { + op.document.write(objprop + ' => ' + inobj[objprop] + '\n'); + } + op.document.close(); +} + +function fillmessagebox(text) { + document.form.message.value = text; +} + +function copyrichtext(textname) { +/// Legacy stub for old editor - to be removed soon + return true; +} + +function checkall() { + void(d=document); + void(el=d.getElementsByTagName('INPUT')); + for(i=0;i