MINOR Changed execution order in preview JS to fix layout issues with collapsed preview panel in IE7 (SSF-42)

This commit is contained in:
Ingo Schommer 2011-12-12 21:30:16 +01:00
parent 02d1ff80a9
commit 0dd32baf1e

View File

@ -33,13 +33,10 @@
// Create layout and controls
this.find('iframe').addClass('center');
this.layout({type: 'border'});
this.find('iframe').bind('load', function() {
self._fixIframeLinks();
self.loadCurrentPage();
});
self._fixIframeLinks();
var updateAfterXhr = function() {
// var url = ui.xmlhttp.getResponseHeader('x-frontend-url');
@ -67,12 +64,16 @@
self.collapse();
});
this.layout({type: 'border'});
if(this.hasClass('is-expanded')) this.expand();
else this.collapse();
// Preview might not be available in all admin interfaces - block/disable when necessary
this.append('<div class="cms-preview-overlay ui-widget-overlay-light"></div>');
this.find('.cms-preview-overlay-light').hide();
self._fixIframeLinks();
this._super();
},