From: skodak Date: Wed, 16 May 2007 18:17:14 +0000 (+0000) Subject: MDL-9825, MDL-9798, MDL-9799 - new workaround for the object trouble in IE caused... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9eb64c947a157db02dc67492ae1e0c398c942606;p=moodle.git MDL-9825, MDL-9798, MDL-9799 - new workaround for the object trouble in IE caused by UFO; reverting previous patches; merged from MOODLE_18_STABLE --- diff --git a/lib/ufo.js b/lib/ufo.js index 4aa8ef440a..392a6ca72e 100644 --- a/lib/ufo.js +++ b/lib/ufo.js @@ -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; + } } } } diff --git a/theme/index.php b/theme/index.php index 1a57a53b61..ddc986d9e6 100644 --- a/theme/index.php +++ b/theme/index.php @@ -124,12 +124,10 @@ echo ''; } - // 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 ''.$strchoose.''; + print_single_button('index.php', $options, $strchoose); echo ''; echo ""; } diff --git a/user/policy.php b/user/policy.php index f23baea854..be339d7506 100644 --- a/user/policy.php +++ b/user/policy.php @@ -49,20 +49,11 @@ echo ''.$strpolicyagreementclick.''; echo ''; - // 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 '

'. $strpolicyagree .'

'; - echo '
'; - echo ''; - echo ''; - echo '
'; - print_box_end(); + notice_yesno($strpolicyagree, $linkyes, $linkno, $optionsyes, $optionsno); print_footer();