Merge pull request #13212 from nextcloud/bugfix/noid/ie11-files-loading

Files list not rendering if user has favorites navigation unfolded
This commit is contained in:
Roeland Jago Douma 2018-12-21 14:20:41 +01:00 committed by GitHub
commit bcea6c3697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);
}
};