diff options
author | Tomasz Grobelny <tomasz@grobelny.net> | 2019-01-29 21:26:44 +0100 |
---|---|---|
committer | Tomasz Grobelny <tomasz@grobelny.net> | 2019-01-29 21:26:44 +0100 |
commit | 08919eb19335825dc1f2cd950f9529a2b9caf29b (patch) | |
tree | b8b0feecbac68789b0f89526c19f1c64523e2544 /apps/files/js/navigation.js | |
parent | 04d326f95feacd640dc5d6fecff1ec0ef0970265 (diff) | |
parent | deb7d2364f38ce24bee62cd490fccfd6e4d3f059 (diff) | |
download | nextcloud-server-08919eb19335825dc1f2cd950f9529a2b9caf29b.tar.gz nextcloud-server-08919eb19335825dc1f2cd950f9529a2b9caf29b.zip |
Merge branch 'master' into operation_progress_improvements3
Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
Diffstat (limited to 'apps/files/js/navigation.js')
-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]); } }; |