From: moodler Date: Sun, 9 Jan 2005 15:10:12 +0000 (+0000) Subject: Split up the Javascript stuff into static and non-static. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=63d288118a7802cb4db5c69cae5dc3303921ed0d;p=moodle.git Split up the Javascript stuff into static and non-static. This will reduce the size of each page somewhat. --- 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