diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 06:22:27 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 06:22:27 +0000 |
commit | ef3611f0370453d012d58c76d79b128f8787aa08 (patch) | |
tree | 2905b73e92d6b0db94da9012d170d4b32e355a11 /views/default/messages | |
parent | 9ad20de616eb414a24394772dd548522fd000da2 (diff) | |
download | elgg-ef3611f0370453d012d58c76d79b128f8787aa08.tar.gz elgg-ef3611f0370453d012d58c76d79b128f8787aa08.tar.bz2 |
system messages now fade out after 3 seconds.
git-svn-id: https://code.elgg.org/elgg/trunk@1048 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/messages')
-rw-r--r-- | views/default/messages/messages/list.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/default/messages/messages/list.php b/views/default/messages/messages/list.php index 88d7f0ede..b6e681007 100644 --- a/views/default/messages/messages/list.php +++ b/views/default/messages/messages/list.php @@ -17,6 +17,13 @@ if (!empty($vars['object']) && is_array($vars['object'])) {
?>
+<!-- used to fade out the system messages after 3 seconds -->
+<script>
+ $(document).ready(function () {
+ $('.messages').animate({opacity: 1.0}, 3000) //this holds the div without change for 3 seconds
+ $('.messages').fadeOut('slow'); //fade it out
+ });
+</script>
<div class="messages">
<div class="messages-errors">
|