mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Cleanup JS about flash messages and rebuild dist.
This commit is contained in:
parent
72b3454c66
commit
4708516000
2 changed files with 3 additions and 10 deletions
4
src/dist/js/script.min.js
vendored
4
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -100,9 +100,9 @@ var app = Sammy('#main', function (sam) {
|
|||
store.set('flash', true);
|
||||
}
|
||||
|
||||
// Helper CSS class on main wrapper
|
||||
$('#slider').addClass('with-flashMessage');
|
||||
|
||||
|
||||
// If the line is a bash command
|
||||
if (level === 'info' && message.charAt(0) === '+') {
|
||||
level = 'log';
|
||||
|
@ -246,7 +246,6 @@ var app = Sammy('#main', function (sam) {
|
|||
loaded = true;
|
||||
$('div.loader').remove();
|
||||
$('#modal').modal('hide');
|
||||
$('#flashModal').modal('hide');
|
||||
|
||||
if (enableSlide) {
|
||||
var leSwap = function() {
|
||||
|
@ -470,11 +469,6 @@ var app = Sammy('#main', function (sam) {
|
|||
req.redirect('#/login');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Clear flash display
|
||||
if (!store.get('flash')) {
|
||||
$('#flash').fadeOut(function() { $('#flash').html('').show(); });
|
||||
}
|
||||
});
|
||||
|
||||
sam.after(function () {});
|
||||
|
@ -709,7 +703,6 @@ var app = Sammy('#main', function (sam) {
|
|||
// Step 3 : administration passowrd
|
||||
sam.get('#/postinstall/password', function(c) {
|
||||
$('#masthead').hide();
|
||||
$('#flash .alert').remove();
|
||||
if (!store.get('maindomain')) {
|
||||
store.clear('slide');
|
||||
c.redirect('#/postinstall/domain');
|
||||
|
|
Loading…
Reference in a new issue