mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
interferance with tour
This commit is contained in:
parent
bb8eba7df1
commit
5d37644d28
2 changed files with 3 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ setupTooltips = (model) ->
|
|||
setupTour = (model) ->
|
||||
tourSteps = [
|
||||
{
|
||||
element: "#avatar"
|
||||
element: ".main-avatar"
|
||||
title: "Welcome to HabitRPG"
|
||||
content: "Welcome to HabitRPG, a habit-tracker which treats your goals like a Role Playing Game."
|
||||
}
|
||||
|
|
@ -122,7 +122,7 @@ setupTour = (model) ->
|
|||
]
|
||||
|
||||
tour = new Tour()
|
||||
for step in tourSteps
|
||||
_.each tourSteps, (step) ->
|
||||
tour.addStep
|
||||
html: true
|
||||
element: step.element
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ module.exports.app = (appExports, model) ->
|
|||
user.set 'preferences.armorSet', $(el).attr('data-value')
|
||||
|
||||
user.on 'set', 'flags.customizationsNotification', (captures, args) ->
|
||||
$('.main-avatar').popover('destroy') #remove the tour popover
|
||||
return unless captures == true
|
||||
html = """
|
||||
Click your avatar to customize your appearance. <a href='#' onClick="$('.main-avatar').popover('hide');return false;">[Close]</a>
|
||||
|
|
|
|||
Loading…
Reference in a new issue