Skip to content

Commit 085dd23

Browse files
committed
Fixed error in IFRAME options
1 parent 0d75272 commit 085dd23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jquery.HTMLplus.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@
370370
};
371371

372372
$.fn.HTMLplus.IFRAME = function(nodes,options,x){
373-
options = $.extend({
373+
options = $.extend(true,{
374374
autoheightSpeed:600,
375-
loadingCss:{},
375+
loadingCss:{opacity:0.8,background:'#ddd',textAlign:'center'},
376376
loadingHtml:'loading ...'
377377
},options);
378378
nodes.each(function(){
@@ -421,8 +421,7 @@
421421
if($el.hasClass(x+'loading')){
422422
var pos = $el.offset();
423423
var base=$.extend({},options.loadingCss,{width:$el.outerWidth(),height:$el.outerHeight(),
424-
lineHeight:$el.height()+'px',position:'absolute',top:pos.top,
425-
left:pos.left,opacity:0.8,background:'#ddd',textAlign:'center'});
424+
lineHeight:$el.height()+'px',position:'absolute',top:pos.top,left:pos.left});
426425
loading=$('<div>').css(base).html(options.loadingHtml).appendTo('body');
427426
if(isIE && el.contentWindow.document.body !== null){
428427
loading.fadeOut('fast');

0 commit comments

Comments
 (0)