aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages/errors
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 18:19:28 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-03 18:19:28 +0000
commit6f4c61de42ac09acb9235bc461931b3539bdf348 (patch)
tree102d5f632c445edc96016d271dda590431c6449b /views/default/messages/errors
parent99f68895e5b04e32a50a6a429b3809a741fc049f (diff)
downloadelgg-6f4c61de42ac09acb9235bc461931b3539bdf348.tar.gz
elgg-6f4c61de42ac09acb9235bc461931b3539bdf348.tar.bz2
updated messaging system with 'click to dismiss' and moved it's position to not overlap the top toolbar
git-svn-id: https://code.elgg.org/elgg/trunk@2181 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/messages/errors')
-rw-r--r--views/default/messages/errors/list.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/views/default/messages/errors/list.php b/views/default/messages/errors/list.php
index fc7b7d9d9..28cd2b053 100644
--- a/views/default/messages/errors/list.php
+++ b/views/default/messages/errors/list.php
@@ -20,7 +20,7 @@
<!-- used to fade out the system messages after 3 seconds -->
<script>
$(document).ready(function () {
- $('.messages_error').animate({top:"3px", opacity: 1.0}, 1000);
+ $('.messages_error').animate({top:"30px", opacity: 1.0}, 1000);
$('.messages_error').animate({opacity: 1.0}, 6000);
$('.messages_error').fadeOut('slow');
@@ -29,12 +29,18 @@ $(document).ready(function () {
$('.messages_error').fadeOut('slow');
return false;
});
+
+ $('div.messages_error').click(function () {
+ $(".messages_error").stop();
+ $('.messages_error').fadeOut('slow');
+ return false;
+ });
});
</script>
<div class="messages_error">
- <span class="closeMessages"><a href="#">dismiss message</a></span>
+ <span class="closeMessages"><a href="#">click to dismiss</a></span>
<?php
foreach($vars['object'] as $error) {