aboutsummaryrefslogtreecommitdiff
path: root/views/default/messages
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/messages')
-rw-r--r--views/default/messages/errors/list.php14
-rw-r--r--views/default/messages/list.php13
-rw-r--r--views/default/messages/messages/list.php15
3 files changed, 21 insertions, 21 deletions
diff --git a/views/default/messages/errors/list.php b/views/default/messages/errors/list.php
index 922f23787..5f675715d 100644
--- a/views/default/messages/errors/list.php
+++ b/views/default/messages/errors/list.php
@@ -10,15 +10,13 @@
*/
if (!empty($vars['object']) && is_array($vars['object'])) {
-
-?>
-<div id="elgg_system_message" class="hidden radius8 error">
-<script type="text/javascript">$(document).ready(function(){ elgg_system_message() });</script>
-<?php
foreach($vars['object'] as $error) {
- echo elgg_view('messages/errors/error',array('object' => $error));
- }
?>
-</div>
+
+ <div class="elgg_system_message hidden radius8 error">
+ <?php echo elgg_view('messages/errors/error',array('object' => $error)); ?>
+ </div>
+
<?php
+ }
} \ No newline at end of file
diff --git a/views/default/messages/list.php b/views/default/messages/list.php
index 3084f09f8..dc50ef071 100644
--- a/views/default/messages/list.php
+++ b/views/default/messages/list.php
@@ -8,9 +8,14 @@
*
* @uses $vars['object'] The array of message registers
*/
+?>
-if (!empty($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
- foreach($vars['object'] as $register => $list ) {
- echo elgg_view("messages/{$register}/list", array('object' => $list));
+<div id="elgg_system_messages">
+<?php
+ if (!empty($vars['object']) && is_array($vars['object']) && sizeof($vars['object']) > 0) {
+ foreach($vars['object'] as $register => $list ) {
+ echo elgg_view("messages/{$register}/list", array('object' => $list));
+ }
}
-}
+?>
+</div> \ No newline at end of file
diff --git a/views/default/messages/messages/list.php b/views/default/messages/messages/list.php
index 07fae11e7..1d69c0289 100644
--- a/views/default/messages/messages/list.php
+++ b/views/default/messages/messages/list.php
@@ -10,16 +10,13 @@
*/
if (!empty($vars['object']) && is_array($vars['object'])) {
-
-?>
-<div id="elgg_system_message" class="hidden radius8">
-<script type="text/javascript">$(document).ready(function(){ elgg_system_message() });</script>
-<?php
foreach($vars['object'] as $message) {
- echo elgg_view('messages/messages/message',array('object' => $message));
- }
?>
-</div>
-<?php
+ <div class="elgg_system_message hidden radius8">
+ <?php echo elgg_view('messages/messages/message',array('object' => $message)); ?>
+ </div>
+
+<?php
+ }
}