 # WARNING: temporary jquery spaghetti below
 # For now hook in this way -- obviously this breaks isomorphic encapsulation, etc...
 $('body').append($('<div class="salvus-notification-list hide"></div>'))
-$(".salvus-notification-indicator").show()
+notification_indicator = $(".salvus-notification-indicator")
+notification_indicator.show()
 notification_list = $(".salvus-notification-list")
 notification_list_is_hidden = true
 notification_count = $(".salvus-notification-unseen-count")

    $(window).unbind('resize', resize_notification_list)

hide_notification_list = ->
    notification_list.hide()
    unbind_handlers()
    unmount(notification_list[0])

    notification_list.find("input").focus()
    setTimeout(resize_notification_list, 1)

notification_indicator.click () ->
    if notification_list_is_hidden
        show_notification_list()
    else
        hide_notification_list()
    notification_list_is_hidden = not notification_list_is_hidden
    return false

require('./browser').set_notify_count_function(-> _global_notify_count)
