diff --git a/js/app.js b/js/app.js index eed3008b..f1a59fce 100644 --- a/js/app.js +++ b/js/app.js @@ -188,21 +188,16 @@ app = Sammy('#main', function (sam) { if (args.domain.match(/\.nohost\.me$/) || args.domain.match(/\.noho\.st$/)) { $('#popup-title').text(y18n.t('installed')); $('#popup-body p').text(y18n.t('installation_complete_dns')); - interval = 120000; + interval = 180000; } else { interval = 5000; } setInterval(function () { - $.post(store.get('url') +'/login', function(data) { - store.set('connected', true); - $('.logout-button').fadeIn(); - c.flash('success', y18n.t('installation_complete')); - c.redirect('#/'); - }) - .fail(function() { - $('#popup').modal('hide'); - c.flash('fail', y18n.t('error_occured')); - }); + $('#popup-title').text(y18n.t('installation_complete')); + $('#popup-body').html( + '
'+ y18n.t('installation_complete_desc', ['https://'+ args.domain +'/yunohost/admin', args.domain +'/yunohost/admin']) +'
' + + ''+ y18n.t('installation_complete_help_dns') +'
'); }, interval); } else { $('#popup').modal('hide');