diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-18 20:20:57 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-18 20:20:57 +0100 |
commit | 88b8803e65c3383244591cbbde33b96fac761ecc (patch) | |
tree | 4ff4a8b27fef7d2d70e58e102c87e9350aeb0316 /templates | |
parent | ab10e19298c45c9d5ad777690da194741c99b062 (diff) |
fix autofocus when loading unread articles and initial view
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 3 | ||||
-rw-r--r-- | templates/part.feed.unread.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/main.php b/templates/main.php index 90d3896d1..c4816578d 100644 --- a/templates/main.php +++ b/templates/main.php @@ -62,7 +62,8 @@ if($version[0] > 5 || ($version[0] >= 5 && $version[1] >= 80)) { news-item-scroll="true" item-shortcuts news-pull-to-refresh="loadNew()" - tabindex="-1"> + tabindex="-1" + news-auto-focus> <?php print_unescaped($this->inc("part.items")); ?> </div> <div id="firstrun" ng-show="initialized && feedBusinessLayer.noFeeds()"> diff --git a/templates/part.feed.unread.php b/templates/part.feed.unread.php index a933a2f75..2fe2eda0c 100644 --- a/templates/part.feed.unread.php +++ b/templates/part.feed.unread.php @@ -6,7 +6,8 @@ <a class="rss-icon" href="#" ui-if="!feedBusinessLayer.isShowAll()" - ng-click="subscriptionsBusinessLayer.load(0)"> + ng-click="subscriptionsBusinessLayer.load(0)" + oc-click-focus="{selector: '#app-content'}"> <?php p($l->t('Unread articles'))?> </a> <a class="rss-icon" |