summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-14 02:22:36 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-14 02:22:44 +0200
commitdf8f6b5fee643c5b2af8e8d33a7865e898518485 (patch)
tree7100d25d814d5f4b4cf502c9e2b9e6dd5f562ab3 /templates
parent67d7754c364147c274790a76dab7cbfedd352645 (diff)
implement pull to refresh, fix #44
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php1
-rw-r--r--templates/part.items.php2
2 files changed, 3 insertions, 0 deletions
diff --git a/templates/main.php b/templates/main.php
index e0722a91d..80cf5eb86 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -61,6 +61,7 @@ if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) {
ng-show="initialized && !feedBusinessLayer.noFeeds()"
news-item-scroll="true"
item-shortcuts
+ news-pull-to-refresh="loadNew()"
tabindex="-1">
<?php print_unescaped($this->inc("part.items")); ?>
</div>
diff --git a/templates/part.items.php b/templates/part.items.php
index 9a067cf6e..a0c0c3cc4 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -1,3 +1,5 @@
+<div class="pull-refresh" ng-class="{refresh: refresh}"></div>
+
<ul>
<li class="feed_item"
ng-repeat="item in itemBusinessLayer.getAll() | orderBy:['-id'] "