aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages/errors/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/messages/errors/list.php')
-rw-r--r--views/default/messages/errors/list.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/views/default/messages/errors/list.php b/views/default/messages/errors/list.php
index 999912a85..6af962d73 100644
--- a/views/default/messages/errors/list.php
+++ b/views/default/messages/errors/list.php
@@ -17,16 +17,22 @@
if (!empty($vars['object']) && is_array($vars['object'])) {
?>
+<!-- used to fade out the system messages after 3 seconds -->
+<script>
+ $(document).ready(function () {
+ $('.messages_error').animate({opacity: 1.0}, 3000) //this holds the div without change for 3 seconds
+ $('.messages_error').fadeOut('slow'); //fade it out
+ });
+</script>
- <div class="messages">
- <div class="messages-errors">
+ <div class="messages_error">
<?php
foreach($vars['object'] as $error) {
echo elgg_view('messages/errors/error',array('object' => $error));
}
?>
- </div>
+
</div>
<?php
}