[fix] Cleanup JS about flash messages and rebuild dist.

This commit is contained in:
opi 2015-11-23 12:41:17 +01:00
parent 72b3454c66
commit 4708516000
2 changed files with 3 additions and 10 deletions

File diff suppressed because one or more lines are too long

View file

@ -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');