[xwiki-notifications] [Issue] Created: (XPWATCHLIST-26) Only redraw watchlist menu instead of entire menu when enabling/disabling a space/page.
Rob (JIRA)
jira at xwiki.org
Tue Jul 1 14:52:54 CEST 2008
Only redraw watchlist menu instead of entire menu when enabling/disabling a space/page.
-----------------------------------------------------------------------------------------
Key: XPWATCHLIST-26
URL: http://jira.xwiki.org/jira/browse/XPWATCHLIST-26
Project: XWiki Watch List Application
Issue Type: Improvement
Components: Application
Affects Versions: 1.5, 1.4, 1.3
Reporter: Rob
Attachments: XPWATCHLIST-25.patch
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the notifications
mailing list