mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
18ce39a0d1
commit
d3172a0775
@ -203,6 +203,11 @@
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.right form.loading {
|
||||
margin-left: -1000em;
|
||||
margin-right: 1000em;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tinymce
|
||||
*/
|
||||
|
@ -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({
|
||||
@ -179,6 +182,8 @@
|
||||
|
||||
self._loadResponse(xmlhttp.responseText, status, xmlhttp);
|
||||
|
||||
self.removeClass('loading');
|
||||
|
||||
if(callback) callback.apply(self, arguments);
|
||||
},
|
||||
dataType: 'html'
|
||||
|
Loading…
Reference in New Issue
Block a user