changeset 4343:c1a7c986afa5

some cosmetic changes to the javascript code (whitespace only)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 27 Sep 2008 16:54:07 +0200
parents 2bd88d32a0a1
children 5c88b27f31e5
files wiki/htdocs/common/js/common.js
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/htdocs/common/js/common.js	Sat Sep 27 15:34:28 2008 +0200
+++ b/wiki/htdocs/common/js/common.js	Sat Sep 27 16:54:07 2008 +0200
@@ -1,4 +1,4 @@
-        //
+//
 // MoinMoin commonly used JavaScript functions
 //
 
@@ -67,16 +67,16 @@
 
 // use this instead of assigning to window.onload directly:
 function addLoadEvent(func) {
-  // alert("addLoadEvent " + func)
-  var oldonload = window.onload;
-  if (typeof window.onload != 'function') {
-    window.onload = func;
-  } else {
-    window.onload = function() {
-      oldonload();
-      func();
+    // alert("addLoadEvent " + func)
+    var oldonload = window.onload;
+    if (typeof window.onload != 'function') {
+        window.onload = func;
+    } else {
+        window.onload = function() {
+            oldonload();
+            func();
+        }
     }
-  }
 }
 
 // copy from fckeditor browser check code (fckeditor.js:298, function : FCKeditor_IsCompatibleBrowser)