better party-unlocked message

This commit is contained in:
Tyler Renelle 2013-02-05 20:48:43 -05:00
parent 63dc9c1305
commit d3f8e361bf
2 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -112,16 +112,16 @@ module.exports.setupGrowlNotifications = (model) ->
user.on 'set', 'flags.partyEnabled', (captures, args) ->
return unless captures == true
message = "Congratulations, you have unlocked the Party System! You can now group with your friends by adding their User Ids."
$('#add-party-button').popover
$('.main-avatar').popover
title: "Pary System Unlocked"
placement: 'bottom'
trigger: 'manual'
html: true
content: "<div class='party-system-popover'>
<img src='/img/BrowserQuest/favicon.png' />
#{message} <a href='#' onClick=\"$('#add-party-button').popover('hide');return false;\">[Close]</a>
<img src='/img/party-unlocked.png' style='float:right;padding:5px;' />
#{message} <a href='#' onClick=\"$('.main-avatar').popover('hide');return false;\">[Close]</a>
</div>"
$('#add-party-button').popover 'show'
$('.main-avatar').popover 'show'
# Setup listeners which trigger notifications