summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 01ae9a5a8..ee0cbfc22 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -1667,7 +1667,7 @@ app.service('SettingsResource', ["$http", "BASE_URL", function ($http, BASE_URL)
};
var getChildFeed = function (element) {
- return element.children('ul').children('li:visible');
+ return element.children('ul').children('.feed:visible');
};
var nextFeed = function (navigationArea) {
@@ -1700,7 +1700,8 @@ app.service('SettingsResource', ["$http", "BASE_URL", function ($http, BASE_URL)
// if the previous element is a folder we have to go down
var childFeed = getChildFeed(previousElement);
if (previousElement.hasClass('folder') && childFeed.length !== 0) {
- previousElement = childFeed.prev('li:visible');
+ // fixme: last child
+ previousElement = childFeed.prev('li:visible:last-child');
}
previousElement.children('a:visible').trigger('click');