Skip to content

Commit

Permalink
ADD: installer scripts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mountstone committed Jun 6, 2017
1 parent c06fb63 commit 2725843
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
28 changes: 17 additions & 11 deletions public/packages/core/js/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@
$console.perfectScrollbar();

(function refresh() {
$.get(url).then(function (response) {
if (parseInt(response.progress) > parseInt($progress.text())) {
$progress.text(response.progress);
}
if (response.redirect) {
window.location.replace(response.redirect);
} else {
var text = response.console.replace(/\r\n/g, "\n");
editor.getDoc().setValue(text);
editor.execCommand('goDocEnd');
setTimeout(refresh, 1000);
$.ajax({
url: url,
success: function (response) {
if (parseInt(response.progress) > parseInt($progress.text())) {
$progress.text(response.progress);
}
if (response.redirect) {
window.location.replace(response.redirect);
} else {
var text = response.console.replace(/\r\n/g, "\n");
editor.getDoc().setValue(text);
editor.execCommand('goDocEnd');
setTimeout(refresh, 1000);
}
},
error: function () {
window.location.replace('/');
}
});
})();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{{ asset.scripts()|raw }}
{% endblock %}
{{ app('antares.asset').container('antares/foundation::scripts').webpack()|raw }}

<script>
window.addEventListener("load", function (event) {
$('.grid-stack,form').css('opacity', '1');
Expand Down

0 comments on commit 2725843

Please sign in to comment.