fix that stupid mobileclient bug in the editor

This commit is contained in:
Gwendolyn 2023-12-05 17:20:01 +01:00
parent 7862ec2765
commit 816fb04bea

View file

@ -176,7 +176,8 @@ editor = {
// sidebar was loaded. load the content. check if there are any redirects. call _check_start_editing.
var content = $('#sidebar').removeClass('loading').find('.content');
if (data !== undefined) {
content.html($(data));
var doc = (new DOMParser).parseFromString(data, 'text/html');
content[0].replaceChildren(...doc.body.children);
}
var redirect = content.find('span[data-redirect]');