aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages
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
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')
-rw-r--r--views/default/messages/errors/list.php10
-rw-r--r--views/default/messages/messages/list.php11
2 files changed, 16 insertions, 5 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) {
diff --git a/views/default/messages/messages/list.php b/views/default/messages/messages/list.php
index 02825b705..c09bcff89 100644
--- a/views/default/messages/messages/list.php
+++ b/views/default/messages/messages/list.php
@@ -20,7 +20,7 @@
<!-- used to fade out the system messages after 3 seconds -->
<script>
$(document).ready(function () {
- $('.messages').animate({top:"3px", opacity: 1.0}, 1000);
+ $('.messages').animate({top:"30px", opacity: 1.0}, 1000);
$('.messages').animate({opacity: 1.0}, 6000);
$('.messages').fadeOut('slow');
@@ -29,12 +29,17 @@ $(document).ready(function () {
$('.messages').fadeOut('slow');
return false;
});
-
+
+ $('div.messages').click(function () {
+ $(".messages").stop();
+ $('.messages').fadeOut('slow');
+ return false;
+ });
});
</script>
<div class="messages">
- <span class="closeMessages"><a href="#">dismiss message</a></span>
+ <span class="closeMessages"><a href="#">click to dismiss</a></span>
<?php