summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-05-08 10:13:42 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-05-08 10:13:42 +0200
commit5e1005f3e704c01476cd7f971698d42296ed3795 (patch)
tree385bd2ae8c3b4a6387e71f400e51618b4c868606 /js/build/app.js
parente76e75ac80e209d9f3f5be0ef119282590173190 (diff)
fix #786
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 20330a0b8..31432ddf2 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -2343,7 +2343,12 @@ app.service('SettingsResource', ["$http", "BASE_URL", function ($http, BASE_URL)
items.each(function (index, item) {
item = $(item);
- if (item.position().top > 1) {
+ // special treatment for items that have expand enabled:
+ // if you click next and the first item has not been expaned and
+ // is on the top, it should be expanded instead of the next one
+ if ((item.position().top === 0 && expandItemInCompact &&
+ !item.hasClass('open')) ||
+ item.position().top > 1) {
scrollToItem(scrollArea, item, expandItemInCompact);
jumped = true;