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

Show/Hide Section gives misleading results

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.13, 2.1.1
    • 2.3
    • Course, JavaScript
    • MOODLE_19_STABLE, MOODLE_21_STABLE
    • MOODLE_23_STABLE
    • Hide

      Refresh the page, which defeats the object of AJAX

      Show
      Refresh the page, which defeats the object of AJAX

    Description

      Unhiding a section which contains hidden resources/activities makes all of the content appear unhidden.

      This is due to the fact that the AJAX code uses CSS styles to determine what was previously shown/hidden.

      To recreate:

      1. Hide some resources
      2. Hide the section
      3. Refresh the page (or do something which causes the page to be refreshed)
      4. Unhide the topic -> all resources appear unhidden
      5. Refresh the page -> all hidden resources appear hidden again

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              amanda.doughty Amanda Doughty
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona), David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12