Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5308

Only redraw watchlist menu entries instead of entire menu when enabling/disabling a wiki/space/page.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.4 M2
    • 2.4 M1
    • None
    • None
    • watchlist menu patch
    • Unknown

    Description

      If somebody were to use prototype Event.observe on certain menu actions, after choosing to watch/unwatch a space/page and re-drawing the entire menu (menuview.vm) the listeners would be lost. For example, I implemented "send page by email" in a lightbox which was hidden on page load. I used prototype to listen for a click on an 'email page' button on the print menu. When the entire menu is redrawn, the listener/s are broken, which is why I'm only redrawing the watch section of the main menu. It also slightly saves bandwidth. That is why I created a separate template to be used for drawing the watchlist section of the menu.

      Attachments

        Issue Links

          Activity

            People

              jvdrean Jean-Vincent Drean
              orbit Rob
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: