Moved fade-in for flash-message to vitroUtils.js since this behavior should apply throughout the app and should not be limited only to pages that include the login widget.
This commit is contained in:
parent
2be51ef25c
commit
0d78f1f1f0
2 changed files with 3 additions and 4 deletions
|
@ -11,7 +11,4 @@ $(document).ready(function(){
|
||||||
// fade in error alerts
|
// fade in error alerts
|
||||||
$('section#error-alert').css('display', 'none').fadeIn(1500);
|
$('section#error-alert').css('display', 'none').fadeIn(1500);
|
||||||
|
|
||||||
// fade in fash-message when user log out
|
|
||||||
$('section#flash-message').css('display', 'none').fadeIn(1500);
|
|
||||||
|
|
||||||
});
|
});
|
|
@ -5,4 +5,6 @@ $(document).ready(function(){
|
||||||
// fade out welcome-message when user logs in
|
// fade out welcome-message when user logs in
|
||||||
$('section#welcome-message').css('display', 'block').delay(2000).fadeOut(1500);
|
$('section#welcome-message').css('display', 'block').delay(2000).fadeOut(1500);
|
||||||
|
|
||||||
|
// fade in flash-message when user logs out
|
||||||
|
$('section#flash-message').css('display', 'none').fadeIn(1500);
|
||||||
});
|
});
|
Loading…
Add table
Reference in a new issue