diff options
-rw-r--r-- | views/default/messages/errors/list.php | 12 | ||||
-rw-r--r-- | views/default/messages/messages/list.php | 3 |
2 files changed, 10 insertions, 5 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
}
diff --git a/views/default/messages/messages/list.php b/views/default/messages/messages/list.php index b6e681007..2554112b6 100644 --- a/views/default/messages/messages/list.php +++ b/views/default/messages/messages/list.php @@ -26,7 +26,6 @@ </script>
<div class="messages">
- <div class="messages-errors">
<?php
@@ -36,7 +35,7 @@ }
?>
- </div>
+
</div>
<?php
|