lib/assets/javascripts/scrivito_sdk.js in scrivito_sdk-0.40.0 vs lib/assets/javascripts/scrivito_sdk.js in scrivito_sdk-0.41.0.rc1
- old
+ new
@@ -9,10 +9,10 @@
$(function() {
var dom_config = scrivito_ui.dom_config.read($('body'));
if (scrivito_ui.is_inited()) {
if (!dom_config) {
// UI is already running, but editing is not allowed: reload UI to make it disappear.
- window.parent.location.reload();
+ window.parent.location = window.location;
}
} else {
if (!dom_config) {
// UI is not yet running and config is missing.
$.error('Missing Scrivito config. Did you forget to include scrivito_body_tags in layout?');