File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1616 tab : '.tab-addtabs' ,
1717 iframeUse : true , //使用iframe还是ajax
1818 iframeHeight : $ ( window ) . height ( ) - 50 , //固定TAB中IFRAME高度,根据需要自己修改
19- iframeForceRefresh : false , //点击后强制刷新对应的iframe
19+ iframeForceRefresh : false , //点击后强制加载对应的iframe
20+ iframeForceRefreshTable : false , //点击后强制刷新对应的iframe中的table
2021 callback : function ( ) {
2122 //关闭后回调函数
2223 }
141142 $ ( "#" + conid + " iframe" ) . attr ( 'src' , function ( i , val ) {
142143 return val ;
143144 } ) ;
145+ } else if ( options . iframeForceRefreshTable ) {
146+ try {
147+ //检测iframe中是否存在刷新按钮
148+ if ( $ ( "#" + conid + " iframe" ) . contents ( ) . find ( ".btn-refresh" ) . size ( ) > 0 ) {
149+ $ ( "#" + conid + " iframe" ) [ 0 ] . contentWindow . $ ( ".btn-refresh" ) . trigger ( "click" ) ;
150+ }
151+ } catch ( e ) {
152+
153+ }
144154 }
145155 }
146156 localStorage . setItem ( "addtabs" , $ ( this ) . prop ( 'outerHTML' ) ) ;
You can’t perform that action at this time.
0 commit comments