Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit d3172a0775096feec808185a584a82fb85232fcd 1 parent 18ce39a
@chillu chillu authored
Showing with 10 additions and 0 deletions.
  1. +5 −0 css/cms_right.css
  2. +5 −0 javascript/LeftAndMain.EditForm.js
View
5 css/cms_right.css
@@ -202,6 +202,11 @@
padding: .5em;
font-size: 11px;
}
+
+ .right form.loading {
+ margin-left: -1000em;
+ margin-right: 1000em;
+ }
/**
* Tinymce
View
5 javascript/LeftAndMain.EditForm.js
@@ -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);
},
Please sign in to comment.
Something went wrong with that request. Please try again.