Ignore:
Timestamp:
Oct 31, 2012, 1:34:19 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1729 and #1730.

Refactored the code for displaying a popup message when loading a page. The message should now be stored as a session setting instead: sc.setSessionSetting("alert-message", message). The added benefit is that the message is only displayed once and is not re-displayed if the page is reloaded.

Removed onunload, onkeypress and attributes from the <base:body> tag. Added support for dynamic attributes instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/export/index.jsp

    r5426 r6192  
    9898if (forward != null)
    9999{
     100  sc.setSessionSetting("alert-message", message);
    100101  pageContext.forward(forward);
    101102}
    102103else if (redirect != null)
    103104{
     105  sc.setSessionSetting("alert-message", message);
    104106  response.sendRedirect(redirect);
    105107}
Note: See TracChangeset for help on using the changeset viewer.