mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
"Insert Media" dialog: Prevent loading indicator in IE8+
Fixes https://github.com/silverstripe/silverstripe-cms/issues/782
This commit is contained in:
parent
8c9ef8feb9
commit
1046530ff6
@ -153,7 +153,7 @@
|
|||||||
iframe.bind('load', function(e) {
|
iframe.bind('load', function(e) {
|
||||||
if($(this).attr('src') == 'about:blank') return;
|
if($(this).attr('src') == 'about:blank') return;
|
||||||
|
|
||||||
$(this).show();
|
iframe.addClass('loaded').show(); // more reliable than 'src' attr check (in IE)
|
||||||
self._resizeIframe();
|
self._resizeIframe();
|
||||||
self.uiDialog.removeClass('loading');
|
self.uiDialog.removeClass('loading');
|
||||||
}).hide();
|
}).hide();
|
||||||
@ -170,7 +170,7 @@
|
|||||||
var self = this, iframe = this.element.children('iframe');
|
var self = this, iframe = this.element.children('iframe');
|
||||||
|
|
||||||
// Load iframe
|
// Load iframe
|
||||||
if(!iframe.attr('src') || this.options.reloadOnOpen) {
|
if(this.options.iframeUrl && (!iframe.hasClass('loaded') || this.options.reloadOnOpen)) {
|
||||||
iframe.hide();
|
iframe.hide();
|
||||||
iframe.attr('src', this.options.iframeUrl);
|
iframe.attr('src', this.options.iframeUrl);
|
||||||
this.uiDialog.addClass('loading');
|
this.uiDialog.addClass('loading');
|
||||||
|
Loading…
Reference in New Issue
Block a user