We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54ee699 + faf7a19 commit 0bbb1faCopy full SHA for 0bbb1fa
1 file changed
apps/files/js/navigation.js
@@ -248,8 +248,11 @@
248
* This method allows easy swapping of elements.
249
*/
250
swap: function (list, j, i) {
251
- list[i].before(list[j]);
252
- list[j].before(list[i]);
+ var before = function(node, insertNode) {
+ node.parentNode.insertBefore(insertNode, node);
253
+ }
254
+ before(list[i], list[j]);
255
+ before(list[j], list[i]);
256
}
257
258
};
0 commit comments