Commit b88ea7b1 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Thomas Gambier

erp5_web_js_style: Fixup an issue with the google cache

   By Romain
parent 1d5d2f69
Pipeline #26643 failed with stage
in 0 seconds
......@@ -453,6 +453,7 @@
if (style_css_url === null) {
// Compatibility with old html format (like in google cache)
gadget.element.innerHTML = parsed_content.original_content;
showPage();
return;
}
return new RSVP.Queue(rJS.declareCSS(style_css_url, document.head))
......@@ -460,6 +461,7 @@
// Set again the page content after the css is loaded
// to prevent ugly rendering
gadget.element.innerHTML = parsed_content.original_content;
showPage();
});
});
});
......@@ -473,4 +475,4 @@
hidePage();
}(window, document, RSVP, rJS, XMLHttpRequest, URL,
rJS.loopEventListener, history, console));
\ No newline at end of file
rJS.loopEventListener, history, console));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment