|
I was tracking down the bug and found its is reproducible in IE7,
working fine on firefox 3.0.8 but not working on Opera 9.6.3. when we choose Edit categories and item page from action dropdown menu the respective pages doesn't show up in case of Opera. Howeven for IE7, i have found: 1. /moodle/grade/edit/tree/item.php uses $mform object of type edit_item_form and calls its display method. For the time being i am still working on the bug and trying to find out a descent fix. But i would appreciate if i could get some hints on this After my investigation over the bug it seems to be a bug in microsoft IE7. The browser is not currently supporting the onclick, onblur, onchange handlers on the DOM option elements. As a proof of concept here is an html code to test on both IE7 and FF1+:
<html> <script> </head> The code gave me no alert when I clicked option A in IE7 but that alert appeared when I did the same action in Firefox. Check it out! correct me if i am wrong this bug cannot be fixed without major changes in the code.
Just an FYI from
I hooked an option tag with YUI event utilities and tested the same code i pasted earlier .... its once again working on firefox but not on IE7
Note that this works in most cases. For example all the enable disable on the quiz settings page works.
So, as Sehrish found, the problem seems to be when the source element is a Dropdown menu, the event handler does not fire. OK. The problem is that in Internet Exporer, if select is a HTML select element, then select[0] is the first option element inside it. So my test for whether form[dependon] was a single element, or array of elements (radio buttons), was broken. I was doing if (!masters[0]). Now I will try if (masters.tagName) Doh! I was already using the .tagName test everywhere else. OK, fix checked in. Tested: works fine! Thanks.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MDL-15827is the other possible cause for this regression.I'm going to leave this for a day or too in case a GSOC applicant wants to fix it, otherwise I will have to try to fix it myself before the next weekly.