Uploaded image for project: '{RETIRED} XWiki Watch List Application'
  1. {RETIRED} XWiki Watch List Application
  2. XPWATCHLIST-25

AJAX race condition when selecting watch/unwatch space/page.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8
    • 1.0, 1.0.1, 1.0.2, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
    • Application
    • None
    • watchlist menu patch

    Description

      When selecting 'Watch' or 'Unwatch' this page/space from the top menu, an AJAX request is sent back to add or remove the current page/space to the user's watch list. The menu (menuview.vm) is then re-rendered, pulling values from the database. In some conditions, the AJAX request won't be saved before menuview.vm checks the status of the page to see if it is watched or unwatched, resulting in an incorrect watch menu.

      Also only redraw the watchlist menu, which improves speed but also doesn't break any onclick events that may have been on menu items.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: