Changeset 257 for trunk/web-app


Ignore:
Timestamp:
Mar 11, 2010, 2:23:53 PM (11 years ago)
Author:
duh
Message:
  • added limited auto parsing for DATE template entity values that are set as String instead of Date instances
  • general improvements and bugfixes
File:
1 edited

Legend:

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

    r250 r257  
    5555        var re = /^#/gi;
    5656
     57        // bind to the anchor?
    5758        if (!element.attr('href').match(/^#/gi) && !element.attr('href').match(/\/([^\/]+)\/wizard\/pages/gi)) {
    5859            // bind a warning to the onclick event
    59             element.bind('click',function() {
    60                 return confirm('Warning: navigating away from the wizard causes loss of work and unsaved data. Are you sure you want to continue?');
    61             })
     60            element.bind('click',function() { return onDirectWarning(); });
    6261        }
    6362    })
     63}
     64
     65function onDirectWarning() {
     66    return confirm('Warning: navigating away from the wizard causes loss of work and unsaved data. Are you sure you want to continue?');
    6467}
    6568
Note: See TracChangeset for help on using the changeset viewer.