slight fixes

This commit is contained in:
Kload 2013-11-21 14:56:46 +01:00
parent 1b8969a322
commit 8ee6aba842
2 changed files with 5 additions and 2 deletions

View file

@ -36,7 +36,7 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="popup-title"></h4>
<h3 class="modal-title" id="popup-title"></h3>
</div>
<div class="modal-body" id="popup-body"></div>
</div>

View file

@ -83,7 +83,10 @@ app = Sammy('#main', function (sam) {
} else {
if (uri == '/postinstall') {
if (installing) {
$('#popup-body').html('<p>YunoHost has been successfully installed, please go to <a href="https://'+ window.location.hostname +'/ynhadmin" target="_blank"><strong>https://'+ window.location.hostname +'/ynhadmin</strong></a>.</p>');
setInterval(function () {
$('#popup-title').text('Installation complete');
$('#popup-body').html('<p>YunoHost has been successfully installed, please go to <a href="https://'+ window.location.hostname +'/ynhadmin" target="_blank"><strong>https://'+ window.location.hostname +'/ynhadmin</strong></a>.</p>');
}, 5000);
} else {
$('#popup').modal('hide');
}