Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33642

In IE8, javascript fails when setting focus on intro HTML editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      1. Use IE8
      2. Create a new File resource
      3. Set a name, and add a file but leave description empty
      4. Click on 'Save and return to course'

      Expected behaviour:

      • The HTML editor gets focus and you stay on the same page

      What happens

      • Javascript fails causing the form to be submitted

      Can't move the focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
       
      frm.elements['introeditor[text]'].focus();

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fred Frédéric Massart
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: