BUGFIX Hiding LeftAndMain editform while loading new DOM through ajax, to avoid flash-of-unstyled-content issues

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92754 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:17:04 +00:00
parent 18ce39a0d1
commit d3172a0775
2 changed files with 10 additions and 0 deletions

View File

@ -202,6 +202,11 @@
padding: .5em;
font-size: 11px;
}
.right form.loading {
margin-left: -1000em;
margin-right: 1000em;
}
/**
* Tinymce

View File

@ -169,6 +169,9 @@
// Alert when unsaved changes are present
if(this._checkChangeTracker(true) == false) return false;
// hide existing form - shown again through _loadResponse()
this.addClass('loading');
this.trigger('load');
return jQuery.ajax(jQuery.extend({
@ -178,6 +181,8 @@
self.removeClass('changed');
self._loadResponse(xmlhttp.responseText, status, xmlhttp);
self.removeClass('loading');
if(callback) callback.apply(self, arguments);
},