X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/489b08961ffd3250658aafd1b861ec55fbbff5a3..ea19ea0d94a36596178937c02e149b94a39e2d72:/skins/ajax_scripts/ajax_form_manager.js?ds=inline diff --git a/skins/ajax_scripts/ajax_form_manager.js b/skins/ajax_scripts/ajax_form_manager.js index 8b51b2e..d3efec3 100644 --- a/skins/ajax_scripts/ajax_form_manager.js +++ b/skins/ajax_scripts/ajax_form_manager.js @@ -391,19 +391,30 @@ FormManager.prototype.loadResponse = function(req) { return; } var fragments = req.responseXML.documentElement.childNodes; - var fragment, dest; - var i; - for (i=0 ; i 0) { + headBase[0].setAttribute('href', element.getAttribute('href')); + } + else { + headBase = document.createElement('base'); + headBase.setAttribute('href', element.getAttribute('href')); + document.head.appendChild(headBase); + } + break; } } break;