mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 12:44:03 +00:00
Render errors in JSON in the schedule correctly
This commit is contained in:
parent
e8261d41bc
commit
a1c7f67735
5 changed files with 32 additions and 37 deletions
|
|
@ -23,14 +23,12 @@ $(function () {
|
|||
}
|
||||
|
||||
var callback = function(data) {
|
||||
if(data.status != 'ok'){
|
||||
showError(data.status);
|
||||
}
|
||||
showError($.parseJSON(data.responseText).errors);
|
||||
}
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: method,
|
||||
success: callback,
|
||||
error: callback,
|
||||
dataType: 'json'
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue