aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-10 10:00:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-10 10:00:20 +0000
commit06a6c2d043bdacea5352bb6c0c35bdebeaa280c7 (patch)
tree162fa5b7120b09aa5f9c6ed9e62a25f163c3bfb3
parent8f038a7b45525537345245123252f8fb2a94b801 (diff)
downloadelgg-06a6c2d043bdacea5352bb6c0c35bdebeaa280c7.tar.gz
elgg-06a6c2d043bdacea5352bb6c0c35bdebeaa280c7.tar.bz2
Error messages now have a different div name
git-svn-id: https://code.elgg.org/elgg/trunk@1385 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/messages/errors/list.php12
-rw-r--r--views/default/messages/messages/list.php3
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