Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/coffee/bootstrap-tour.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,9 @@
# Start tour from current step
start: (force = false) ->
@init force unless @_inited # Backward compatibility

if @_current is null
promise = @_makePromise(@_options.onStart(@) if @_options.onStart?)
@_callOnPromiseDone(promise, @showStep, 0)
@
promise = @_makePromise(@_options.onStart(@) if @_options.onStart?)
@_callOnPromiseDone(promise, @showStep, 0)


# Hide current step and show next step
next: ->
Expand Down Expand Up @@ -524,6 +522,7 @@
# Tip adjustment
$tip = if $element.data 'bs.popover' then $element.data('bs.popover').tip() else $element.data('popover').tip()
$tip.attr 'id', step.id
$element.attr 'aria-describedby', step.id

@_focus $tip, $element, step.next < 0
@_reposition $tip, step
Expand Down