Fix spacing. Totally pedantic.
[squirrelmail.git] / templates / default / js / default.js
index ec3d24b15266d39e9e4404b64dd1a1af80f183a7..c7cbab66e65cc99b2404d9610ae61586e2a8717c 100644 (file)
@@ -95,11 +95,11 @@ function rowOver(chkboxName) {
  * @param   string   new color of the checked rows
  */
 function toggle_all(formname, fancy) {
  * @param   string   new color of the checked rows
  */
 function toggle_all(formname, fancy) {
-     TargetForm = document.getElementById(formname);
-     j = 0;
-     for (var i = 0; i < TargetForm.elements.length; i++) {
-         if (TargetForm.elements[i].type == 'checkbox' && TargetForm.elements[i].name.substring(0,3) == 'msg') {
-             if (fancy) {
+    TargetForm = document.getElementById(formname);
+    j = 0;
+    for (var i = 0; i < TargetForm.elements.length; i++) {
+        if (TargetForm.elements[i].type == 'checkbox' && TargetForm.elements[i].name.substring(0,3) == 'msg') {
+            if (fancy) {
                 array_key = TargetForm.elements[i].getAttribute('id');
                 // initialize orig_row_color if not defined already
                 if (!orig_row_colors[array_key]) {
                 array_key = TargetForm.elements[i].getAttribute('id');
                 // initialize orig_row_color if not defined already
                 if (!orig_row_colors[array_key]) {
@@ -114,8 +114,8 @@ function toggle_all(formname, fancy) {
                 j++
             }
             TargetForm.elements[i].checked = !(TargetForm.elements[i].checked);
                 j++
             }
             TargetForm.elements[i].checked = !(TargetForm.elements[i].checked);
-         }
-     }
+        }
+    }
 }
 
 /*
 }
 
 /*