Changeset 279 for trunk/web-app


Ignore:
Timestamp:
Mar 17, 2010, 3:18:54 PM (11 years ago)
Author:
duh
Message:
  • improved try catch block in wizard data saving
  • if saving fails, the generated exception is shown in the client's error feedback dialog and a stacktrace is shown in the console
  • navigating away from last wizard page does not result in a warning anymore
  • last page does not contain a 'previous' button anymore as this makes no sense at all
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/wizard.js

    r275 r279  
    1313 * $Date$
    1414 */
     15var warnOnRedirect = true;
    1516$(document).ready(function() {
    1617    // check if user is using Firefox 3.6 and warm the user
     
    6162        if (!element.attr('href').match(/^#/gi) && !element.attr('href').match(/\/([^\/]+)\/wizard\/pages/gi)) {
    6263            // bind a warning to the onclick event
    63             element.bind('click',function() { return onDirectWarning(); });
     64            element.bind('click',function() {
     65                if (warnOnRedirect) {
     66                    return onDirectWarning();
     67                }
     68            });
    6469        }
    6570    })
Note: See TracChangeset for help on using the changeset viewer.