mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Temporary support responseText for api return.
This commit is contained in:
parent
2ddbd7597c
commit
60d402469a
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ app = Sammy('#main', function (sam) {
|
||||||
} else if (typeof xhr.responseJSON !== 'undefined') {
|
} else if (typeof xhr.responseJSON !== 'undefined') {
|
||||||
$('#popup').modal('hide');
|
$('#popup').modal('hide');
|
||||||
c.flash('fail', xhr.responseJSON.error);
|
c.flash('fail', xhr.responseJSON.error);
|
||||||
|
} else if (typeof xhr.responseText !== 'undefined') {
|
||||||
|
$('#popup').modal('hide');
|
||||||
|
c.flash('fail', xhr.responseText);
|
||||||
} else {
|
} else {
|
||||||
if (uri == '/postinstall') {
|
if (uri == '/postinstall') {
|
||||||
if (installing) {
|
if (installing) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue