]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9825, MDL-9798, MDL-9799 - new workaround for the object trouble in IE caused...
authorskodak <skodak>
Wed, 16 May 2007 18:17:14 +0000 (18:17 +0000)
committerskodak <skodak>
Wed, 16 May 2007 18:17:14 +0000 (18:17 +0000)
lib/ufo.js
theme/index.php
user/policy.php

index 4aa8ef440a633ab374652825a1b13193f5d3a1b4..392a6ca72efb9c234060049153bf3ba337c7e8ff 100644 (file)
@@ -271,10 +271,17 @@ var UFO = {
                var _l = _o.length
                for (var i = 0; i < _l; i++) {
                        _o[i].style.display = "none";
+            var j = 0;
                        for (var x in _o[i]) {
+                j++;
                                if (typeof _o[i][x] == "function") {
                                        _o[i][x] = null;
                                }
+                if (j > 1000) {
+                    // something is wrong, probably infinite loop caused by embedded html file
+                    // see MDL-9825
+                    break;
+                }
                        }
                }
        }
index 1a57a53b61ecdc6b3d19433ab82f1071de785d50..ddc986d9e67b462160feac4c5df4608ff90eabf1 100644 (file)
             echo '</ul>';
         }
 
-        // can not use forms due to object bug in IE :-( see MDL-9799
-/*        $options = null;
+        $options = null;
         $options['choose'] = $theme;
         $options['sesskey'] = $sesskey;
-        print_single_('index.php', $options, $strchoose);*/
-        echo '<a href="index.php?choose='.$theme.'&amp;sesskey='.sesskey().'">'.$strchoose.'</a>';
+        print_single_button('index.php', $options, $strchoose);
         echo '</td>';
         echo "</tr>";
     }
index f23baea854600ae51c221874458b7a3f0c9f6b6e..be339d7506df4856ce89962a48d999b99a2960d6 100644 (file)
     echo '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.$strpolicyagreementclick.'</a>';
     echo '</object></div>';
 
-  // see MDL-9798
-/*    $linkyes    = 'policy.php';
+    $linkyes    = 'policy.php';
     $optionsyes = array('agree'=>1, 'sesskey'=>sesskey());
     $linkno     = $CFG->wwwroot.'/login/logout.php';
     $optionsno  = array('sesskey'=>sesskey());
-    notice_yesno($strpolicyagree, $linkyes, $linkno, $optionsyes, $optionsno);*/
-
-    print_box_start('generalbox', 'notice');
-    echo '<p>'. $strpolicyagree .'</p>';
-    echo '<div class="buttons">';
-    echo '<div class="singlebutton"><a href="policy.php?agree=1&amp;sesskey='.sesskey().'">'.get_string('yes').'</a></div>';
-    echo '<div class="singlebutton"><a href="../login/logout.php?sesskey='.sesskey().'">'.get_string('no').'</a></div>';
-    echo '</div>';
-    print_box_end();
+    notice_yesno($strpolicyagree, $linkyes, $linkno, $optionsyes, $optionsno);
 
     print_footer();