Commit 860eee2 1 parent e0c2d9b commit 860eee2 Copy full SHA for 860eee2
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ define([
13
13
'dojo/string' ,
14
14
'dojo/keys' ,
15
15
'dojo/on' ,
16
+ 'dojo/query' ,
16
17
'dojo/dom-style' ,
17
18
'module' ,
18
19
@@ -47,6 +48,7 @@ define([
47
48
string ,
48
49
keys ,
49
50
on ,
51
+ domQuery ,
50
52
domStyle ,
51
53
module ,
52
54
@@ -314,8 +316,14 @@ define([
314
316
this . initExportSelect ( ) ;
315
317
this . removeLink ( ) ;
316
318
317
- if ( options . show ) {
318
- this . parentWidget . show ( ) ;
319
+ if ( options . show && this . parentWidget ) {
320
+ //dojo modal dialog
321
+ if ( typeof ( this . parentWidget . show ) === 'function' ) {
322
+ this . parentWidget . show ( ) ;
323
+ // dojo-boostrap modal dialog
324
+ } else if ( typeof ( this . parentWidget . containerNode ) === 'string' ) {
325
+ domQuery ( '#' + this . parentWidget . containerNode ) . closest ( '.modal' ) . modal ( 'show' ) ;
326
+ }
319
327
}
320
328
} ,
321
329
You can’t perform that action at this time.
0 commit comments