Merge pull request #13216 from nextcloud/backport/13212/stable14

[stable14] Files list not rendering if user has favorites navigation unfolded
This commit is contained in:
Roeland Jago Douma 2018-12-22 10:35:08 +01:00 committed by GitHub
commit 0bbb1fa6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -248,8 +248,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]);
}
};