aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 06:22:27 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 06:22:27 +0000
commitef3611f0370453d012d58c76d79b128f8787aa08 (patch)
tree2905b73e92d6b0db94da9012d170d4b32e355a11 /views/default/messages
parent9ad20de616eb414a24394772dd548522fd000da2 (diff)
downloadelgg-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.php7
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">