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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 2.3
    • None
    • Course
    • None
    • 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

              Unassigned Unassigned
              fred Frédéric Massart
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: