[fix] Temporary support responseText for api return.

This commit is contained in:
opi 2014-05-17 12:48:01 +02:00
parent 2ddbd7597c
commit 60d402469a

View file

@ -179,6 +179,9 @@ app = Sammy('#main', function (sam) {
} else if (typeof xhr.responseJSON !== 'undefined') {
$('#popup').modal('hide');
c.flash('fail', xhr.responseJSON.error);
} else if (typeof xhr.responseText !== 'undefined') {
$('#popup').modal('hide');
c.flash('fail', xhr.responseText);
} else {
if (uri == '/postinstall') {
if (installing) {