Skip to content

Commit

Permalink
Add more error message
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Mar 26, 2017
1 parent c63ade0 commit 65cd7dd
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -119,24 +119,28 @@
jQuery("#loading").css("display", "block");
$.ajax({
url: 'index.php?option=com_installer&task=install.ajax_upload',
url: 'index.php?option=com_installer&task=install.ajax_upload2',
data: data,
type: 'post',
processData: false,
cache: false,
contentType: false
}).done(function (res) {
console.log(res.redirect);
if (res.success) {
if (res.data.redirect) {
location.href = res.data.redirect;
} else {
location.href = 'index.php?option=com_installer&view=install';
}
} else {
jQuery("#loading").css("display", "none");
alert(res.message);
}
}).error (function (error) {
jQuery("#loading").css("display", "none");
alert(error.statusText);
});
});
});
JS
);
Expand Down

0 comments on commit 65cd7dd

Please sign in to comment.