File tree Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Expand file tree Collapse file tree 1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change 9
9
var currentStepIndex ;
10
10
var hint ;
11
11
var backdrop ;
12
+ var modal ;
12
13
// Access to jQuery and DOM versions of element
13
14
14
15
base . init = function ( ) {
134
135
return element . offset ( offset ) ;
135
136
}
136
137
138
+ function Modal ( ) {
139
+ var that = this ;
140
+
141
+ }
142
+
137
143
138
144
function Hint ( ) {
139
145
var tooltip ;
384
390
return ( typeof value ) === 'function' ;
385
391
}
386
392
393
+
387
394
function showStep ( step ) {
388
395
var _showStep = function ( ) {
389
396
var selectedElement ;
402
409
}
403
410
$ ( selectedElement ) . get ( 0 ) . scrollIntoView ( false ) ;
404
411
405
- hint . setTarget ( selectedElement || $ ( 'body' ) ) ;
406
- hint . setPosition ( step . hintPosition ) ;
407
- hint . setTooltipPosition ( step . tooltipPosition ) ;
408
- hint . setContent ( intro ) ;
412
+ if ( ! step . modal ) {
413
+ hint . setTarget ( selectedElement || $ ( 'body' ) ) ;
414
+ hint . setPosition ( step . hintPosition ) ;
415
+ hint . setTooltipPosition ( step . tooltipPosition ) ;
416
+ hint . setContent ( intro ) ;
417
+ }
418
+
409
419
410
420
highlightElement ( selectedElement , base . options . highlightInteractivity ) ;
411
421
414
424
highlightElement ( element , base . options . highlightInteractivity ) ;
415
425
} ) ;
416
426
}
417
- return hint . render ( ) ;
427
+
428
+
429
+
430
+ if ( ! step . modal ) {
431
+ return hint . render ( ) ;
432
+ } else {
433
+
434
+ return jQuery . when ( ) ;
435
+ }
418
436
} ;
419
437
420
438
var beforeShowCallback = step . onBeforeShow || base . options . onBeforeShow ;
464
482
currentStepIndex = 0 ;
465
483
} ;
466
484
485
+ base . hideStep = function ( ) {
486
+ hideStep ( base . currentStep ) ;
487
+ } ;
488
+
467
489
// Run initializer
468
490
base . init ( ) ;
469
491
} ;
You can’t perform that action at this time.
0 commit comments