Changeset 257 for trunk/web-app
- Timestamp:
- Mar 11, 2010, 2:23:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web-app/js/wizard.js
r250 r257 55 55 var re = /^#/gi; 56 56 57 // bind to the anchor? 57 58 if (!element.attr('href').match(/^#/gi) && !element.attr('href').match(/\/([^\/]+)\/wizard\/pages/gi)) { 58 59 // 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(); }); 62 61 } 63 62 }) 63 } 64 65 function onDirectWarning() { 66 return confirm('Warning: navigating away from the wizard causes loss of work and unsaved data. Are you sure you want to continue?'); 64 67 } 65 68
Note: See TracChangeset
for help on using the changeset viewer.