diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-09 18:05:23 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-06-13 11:17:44 +0200 |
commit | b0171a758452176317e30e5431ac2833d06bffc3 (patch) | |
tree | e07c8014a431b085d10aca1ce72df43f536559a0 | |
parent | d8f10e96a2b01bee487122f194f0023f4af76636 (diff) | |
download | nextcloud-server-b0171a758452176317e30e5431ac2833d06bffc3.tar.gz nextcloud-server-b0171a758452176317e30e5431ac2833d06bffc3.zip |
Only set the active item when there is one (not the case for quota)
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/files/js/navigation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 83cd556c89a..d213d0467b6 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -123,7 +123,9 @@ _onClickItem: function(ev) { var $target = $(ev.target); var itemId = $target.closest('li').attr('data-id'); - this.setActiveItem(itemId); + if (!_.isUndefined(itemId)) { + this.setActiveItem(itemId); + } ev.preventDefault(); } }; |