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 16
16
tab : '.tab-addtabs' ,
17
17
iframeUse : true , //使用iframe还是ajax
18
18
iframeHeight : $ ( window ) . height ( ) - 50 , //固定TAB中IFRAME高度,根据需要自己修改
19
- iframeForceRefresh : false , //点击后强制刷新对应的iframe
19
+ iframeForceRefresh : false , //点击后强制加载对应的iframe
20
+ iframeForceRefreshTable : false , //点击后强制刷新对应的iframe中的table
20
21
callback : function ( ) {
21
22
//关闭后回调函数
22
23
}
141
142
$ ( "#" + conid + " iframe" ) . attr ( 'src' , function ( i , val ) {
142
143
return val ;
143
144
} ) ;
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
+ }
144
154
}
145
155
}
146
156
localStorage . setItem ( "addtabs" , $ ( this ) . prop ( 'outerHTML' ) ) ;
You can’t perform that action at this time.
0 commit comments