summaryrefslogtreecommitdiffstats
path: root/templates/main.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-30 15:14:07 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-30 15:14:07 +0200
commit88279961c5e2f2bd0711fc4200d58b93b425199e (patch)
tree1e07557fdbd6f037b143fd49f454199737d12f45 /templates/main.php
parentabd5ef4c4c6ad3cf8e879f6c4b9181b077165952 (diff)
fix autopaging and marking read, render items
Diffstat (limited to 'templates/main.php')
-rw-r--r--templates/main.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/main.php b/templates/main.php
index 103c1dc76..b9b00a4a3 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -12,7 +12,7 @@
\OCP\Util::addStyle('news', 'bootstrap/tooltip');
\OCP\Util::addStyle('news', 'app');
//\OCP\Util::addStyle('news', 'navigation');
-//\OCP\Util::addStyle('news', 'content');
+\OCP\Util::addStyle('news', 'content');
\OCP\Util::addStyle('news', 'settings');
?>
@@ -42,14 +42,17 @@
<script type="text/ng-template" id="content.html"><?php print_unescaped($this->inc('part.content')) ?></script>
<div id="app-content"
- ng-class="{'icon-loading': App.loading.isLoading('content')}"
+ ng-class="{
+ 'icon-loading': App.loading.isLoading('content'),
+ 'autopaging': App.loading.isLoading('autopaging')
+ }"
ng-hide="App.loading.isLoading('global')"
ng-view
tabindex="-1"
news-scroll
news-scroll-enabled-auto-page="Content.autoPagingEnabled()"
news-scroll-enabled-mark-read="Content.markReadEnabled()"
- news-scroll-auto-page="Content.autoPage"
- news-scroll-mark-read="Content.scrollRead"></div>
+ news-scroll-auto-page="Content.autoPage()"
+ news-scroll-mark-read="Content.scrollRead(itemIds)"></div>
</div>