Small changes at activities and notifications (#67 and #58)

This commit is contained in:
Andy Strobel 2014-05-17 20:04:30 +02:00
parent 8d22c5f410
commit 8bdd0ec5b4
2 changed files with 3 additions and 29 deletions

View File

@ -39,7 +39,7 @@ $(document).ready(function () {
if (activityLastEntryReached == false) {
// load more activities
loadMore();
loadMoreActivities();
}
}
@ -49,7 +49,7 @@ $(document).ready(function () {
/**
* load new activities
*/
function loadMore() {
function loadMoreActivities() {
// save url for activity reloads
var _url = activityReloadUrl.replace('lastEntryId', activityLastLoadedEntryId);
@ -92,7 +92,7 @@ $(document).ready(function () {
}
// load the first activities
loadMore();
loadMoreActivities();
});

View File

@ -1,26 +0,0 @@
<?php
$count_max = count($notifications);
$count_current = 1;
$class = "";
?>
<?php if ($count_max == 0) { ?>
<li class="placeholder">There are no notifications yet.</li>
<?php } else { ?>
<ul class="media-list">
<?php
foreach ($notifications as $notification) {
?>
<?php echo $notification->getOut(); ?>
<?php
$count_current++;
}
?>
</ul>
<?php } ?>
<script type="text/javascript">
$('span.time').timeago();
</script>