Changeset 6 for trunk/grails-app/views/synchronize
- Timestamp:
- Jan 19, 2011, 2:19:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/synchronize/full.gsp
r3 r6 22 22 url: "<g:createLink controller="synchronize" action="perform" />", 23 23 success: function(data) { window.location.replace( "${url.encodeAsJavaScript()}" ); }, 24 error: function(xhr, textStatus, errorThrown) { alert( "Error " + xhr.responseCode + ": " + textStatus ); window.location.replace( "${url.encodeAsJavaScript()}" ); } 24 error: function(xhr, textStatus, errorThrown) { 25 if( confirm( "Error " + xhr.responseCode + ": " + xhr.responseText + ". Would you like to try again?" ) ) { 26 window.location.refresh(); 27 } else { 28 if( confirm( "Would you like to continue to the original page?") ) { 29 window.location.replace( "${url.encodeAsJavaScript()}" ); 30 } else { 31 $( "#wait_dialog").dialog( "close" ); 32 } 33 } 34 } 25 35 }); 26 36 });
Note: See TracChangeset
for help on using the changeset viewer.