Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.8, 1.9
-
Fix Version/s: None
-
Component/s: Forms Library, Resource
-
Labels:None
-
Environment:Internet Explorer 6.0, Windows
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
When adding a label to a course in IE6, I get a Javascript error:
"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
It doesn't seem to occur in Firefox 2 or IE7.
The problem seems to be that, for labels, the first field on the page is the textarea of the HTML editor, and for some reason this won't accept the focus. I am not sure why, so I've not been able to fix it.
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-9077 | SCORM Package Import Failure |
|
|
|
attaching Piers patch for this issue - see
MDL-9077for more context.Piers Harding - 23/Jul/08 08:42 AM
After correcting the reference field JS validation problem, I stumbled upon another to do with validation (client, and server) of textarea fields that have an html editor attached. When the validation fails it attempts to set the focus() on the textarea which has been masked by the iframe of the html editor.
The attached patch checks to see if an element is a textarea, and whether the user has htmleditor enabled - if so it bypasses the focus() call.
This issue affects all forms that use the htmleditor.
Cheers,
Piers Harding.
MDL-9077for more context. Piers Harding - 23/Jul/08 08:42 AM After correcting the reference field JS validation problem, I stumbled upon another to do with validation (client, and server) of textarea fields that have an html editor attached. When the validation fails it attempts to set the focus() on the textarea which has been masked by the iframe of the html editor. The attached patch checks to see if an element is a textarea, and whether the user has htmleditor enabled - if so it bypasses the focus() call. This issue affects all forms that use the htmleditor. Cheers, Piers Harding.