interferance with tour

This commit is contained in:
Tyler Renelle 2013-02-08 18:37:26 -05:00
parent bb8eba7df1
commit 5d37644d28
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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>