Dialog boxes for AJAX, HTTP, and IPA errors.

The ipa_cmd() has been modified to identity the type of the error
it has received and display the error using the right dialog box.
The dialog box can be customized further to display the appropriate
amount of information for each type of error.
This commit is contained in:
Endi S. Dewata
2010-10-28 09:50:34 -05:00
committed by Adam Young
parent 528145d5df
commit de3cc334ed
5 changed files with 61 additions and 35 deletions

View File

@@ -94,7 +94,7 @@ $(function() {
function init_on_error(xhr, text_status, error_thrown) {
var navigation = $('#navigation').empty();
navigation.append('<p>Error: '+error_thrown.name+'</p>');
navigation.append('<p>URL: '+this.url+'</p>');
navigation.append('<p>'+error_thrown.title+'</p>');
navigation.append('<p>'+error_thrown.message+'</p>');
}