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
...@@ -453,6 +453,7 @@ ...@@ -453,6 +453,7 @@
if (style_css_url === null) { if (style_css_url === null) {
// Compatibility with old html format (like in google cache) // Compatibility with old html format (like in google cache)
gadget.element.innerHTML = parsed_content.original_content; gadget.element.innerHTML = parsed_content.original_content;
showPage();
return; return;
} }
return new RSVP.Queue(rJS.declareCSS(style_css_url, document.head)) return new RSVP.Queue(rJS.declareCSS(style_css_url, document.head))
...@@ -460,6 +461,7 @@ ...@@ -460,6 +461,7 @@
// Set again the page content after the css is loaded // Set again the page content after the css is loaded
// to prevent ugly rendering // to prevent ugly rendering
gadget.element.innerHTML = parsed_content.original_content; gadget.element.innerHTML = parsed_content.original_content;
showPage();
}); });
}); });
}); });
...@@ -473,4 +475,4 @@ ...@@ -473,4 +475,4 @@
hidePage(); hidePage();
}(window, document, RSVP, rJS, XMLHttpRequest, URL, }(window, document, RSVP, rJS, XMLHttpRequest, URL,
rJS.loopEventListener, history, console)); rJS.loopEventListener, history, console));
\ No newline at end of file
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