summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-19 23:00:44 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-19 23:00:44 +0200
commitc5cf003d76d5769ee39367dbd959726ab453ae28 (patch)
treedceccf28b0ece508423c8a097f8c64090fd74d25 /templates
parente0091e293b2ecba85ab08414f4790b64580c0c5e (diff)
set focus to right part when you click on a feed, fix #94
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php3
-rw-r--r--templates/part.feed.starred.php3
-rw-r--r--templates/part.feed.unread.php3
-rw-r--r--templates/part.listfeed.php3
-rw-r--r--templates/part.listfolder.php3
5 files changed, 10 insertions, 5 deletions
diff --git a/templates/main.php b/templates/main.php
index 10533f93b..b57051ec9 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -45,7 +45,8 @@
}"
ng-controller="ItemController"
news-item-scroll
- item-shortcuts>
+ item-shortcuts
+ tabindex="-1">
<?php print_unescaped($this->inc("part.items")); ?>
</div>
diff --git a/templates/part.feed.starred.php b/templates/part.feed.starred.php
index 24258b272..2af6f21ff 100644
--- a/templates/part.feed.starred.php
+++ b/templates/part.feed.starred.php
@@ -6,7 +6,8 @@
class="starred">
<a class="starred-icon"
href="#"
- ng-click="starredBusinessLayer.load(0)">
+ ng-click="starredBusinessLayer.load(0)"
+ oc-click-focus="{selector: '#app-content'}">
<?php p($l->t('Starred')) ?>
</a>
<span class="utils">
diff --git a/templates/part.feed.unread.php b/templates/part.feed.unread.php
index 376324626..026682b23 100644
--- a/templates/part.feed.unread.php
+++ b/templates/part.feed.unread.php
@@ -12,7 +12,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('All articles'))?>
</a>
<span class="utils">
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php
index e2bc78283..310b8a5b5 100644
--- a/templates/part.listfeed.php
+++ b/templates/part.listfeed.php
@@ -21,7 +21,8 @@
'problem-icon': feed.error
}"
href="#"
- class="title">
+ class="title"
+ oc-click-focus="{selector: '#app-content'}">
{{ feed.title }}
</a>
diff --git a/templates/part.listfolder.php b/templates/part.listfolder.php
index 6f2a92bc1..e007b6faa 100644
--- a/templates/part.listfolder.php
+++ b/templates/part.listfolder.php
@@ -19,7 +19,8 @@
ng-class="{
'progress-icon': !folder.id,
'problem-icon': folder.error
- }">
+ }"
+ oc-click-focus="{selector: '#app-content'}">
{{ folder.name }}
</a>