diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-12-21 14:20:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-21 14:20:41 +0100 |
commit | bcea6c3697aacf88b471f7bc54c3005319759b2a (patch) | |
tree | 6be62668cfc7a3244fd733346bbb4de77955e465 /apps/files | |
parent | c2d75ddc4f48ed7b195680f30d975612aed6337c (diff) | |
parent | 6bcc77a7c6575bffd800b5a1d381966c59c1c04a (diff) | |
download | nextcloud-server-bcea6c3697aacf88b471f7bc54c3005319759b2a.tar.gz nextcloud-server-bcea6c3697aacf88b471f7bc54c3005319759b2a.zip |
Merge pull request #13212 from nextcloud/bugfix/noid/ie11-files-loading
Files list not rendering if user has favorites navigation unfolded
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/navigation.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/files/js/navigation.js b/apps/files/js/navigation.js index 02a0af2b369..acfda3b6ce8 100644 --- a/apps/files/js/navigation.js +++ b/apps/files/js/navigation.js @@ -283,8 +283,11 @@ * This method allows easy swapping of elements. */ swap: function (list, j, i) { - list[i].before(list[j]); - list[j].before(list[i]); + var before = function(node, insertNode) { + node.parentNode.insertBefore(insertNode, node); + } + before(list[i], list[j]); + before(list[j], list[i]); } }; |