Ignore:
Timestamp:
Oct 31, 2012, 1:34:19 PM (11 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/views/experiments/explorer/view/index.jsp

    r5426 r6192  
    110110if (forward != null)
    111111{
     112  sc.setSessionSetting("alert-message", message);
    112113  pageContext.forward(forward);
    113114}
    114115else if (redirect != null)
    115116{
     117  sc.setSessionSetting("alert-message", message);
    116118  response.sendRedirect(redirect);
    117119}
Note: See TracChangeset for help on using the changeset viewer.