mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add error handling to AJAX call
This commit is contained in:
parent
a49317dcab
commit
a97b8740aa
@ -201,6 +201,9 @@ function getstatus_ifaces() {
|
||||
},
|
||||
success: function(data){
|
||||
$('#ifaces_status').html(data);
|
||||
},
|
||||
error: function(){
|
||||
$('#ifaces_status').html("<div class=\"alert alert-danger\"><?=gettext('Unable to retrieve status'); ?></div>");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user