mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
bug: popovers where being attached to ".main-avatar" which was changed
to ".main-herobox" in the redesign
This commit is contained in:
parent
124409bfc5
commit
77e696554a
3 changed files with 9 additions and 9 deletions
|
|
@ -114,7 +114,7 @@ setupTour = (model) ->
|
|||
}
|
||||
]
|
||||
|
||||
$('.main-avatar').popover('destroy') #remove previous popovers
|
||||
$('.main-herobox').popover('destroy') #remove previous popovers
|
||||
tour = new Tour()
|
||||
_.each tourSteps, (step) ->
|
||||
tour.addStep _.defaults step, {html:true}
|
||||
|
|
|
|||
|
|
@ -92,17 +92,17 @@ module.exports.app = (appExports, model) ->
|
|||
|
||||
user.on 'set', 'flags.customizationsNotification', (captures, args) ->
|
||||
return unless captures == true
|
||||
$('.main-avatar').popover('destroy') #remove previous popovers
|
||||
$('.main-herobox').popover('destroy') #remove previous popovers
|
||||
html = """
|
||||
Click your avatar to customize your appearance. <a href='#' onClick="$('.main-avatar').popover('hide');return false;">[Close]</a>
|
||||
Click your avatar to customize your appearance. <a href='#' onClick="$('.main-herobox').popover('hide');return false;">[Close]</a>
|
||||
"""
|
||||
$('.main-avatar').popover
|
||||
$('.main-herobox').popover
|
||||
title: "Customize Your Avatar"
|
||||
placement: 'bottom'
|
||||
trigger: 'manual'
|
||||
html: true
|
||||
content: html
|
||||
$('.main-avatar').popover 'show'
|
||||
$('.main-herobox').popover 'show'
|
||||
|
||||
|
||||
userSchema =
|
||||
|
|
|
|||
|
|
@ -72,21 +72,21 @@ module.exports.app = (appExports, model) ->
|
|||
user = model.at('_user')
|
||||
|
||||
unlockPartiesNotification = ->
|
||||
$('.main-avatar').popover('destroy') #remove previous popovers
|
||||
$('.main-herobox').popover('destroy') #remove previous popovers
|
||||
html = """
|
||||
<div class='party-system-popover'>
|
||||
<img src='/img/party-unlocked.png' style='float:right;padding:5px;' />
|
||||
Congratulations, you have unlocked the Party System! You can now group with your friends by adding their User Ids.
|
||||
<a href='#' onClick="$('.main-avatar').popover('hide');return false;">[Close]</a>
|
||||
<a href='#' onClick="$('.main-herobox').popover('hide');return false;">[Close]</a>
|
||||
</div>
|
||||
"""
|
||||
$('.main-avatar').popover
|
||||
$('.main-herobox').popover
|
||||
title: "Party System Unlocked"
|
||||
placement: 'bottom'
|
||||
trigger: 'manual'
|
||||
html: true
|
||||
content: html
|
||||
$('.main-avatar').popover 'show'
|
||||
$('.main-herobox').popover 'show'
|
||||
|
||||
appExports.manuallyUnlockParties = ->
|
||||
$("#settings-modal").modal("hide")
|
||||
|
|
|
|||
Loading…
Reference in a new issue