mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
parent
184be0bf65
commit
75c7d140d1
2 changed files with 4 additions and 6 deletions
|
@ -5,7 +5,7 @@ block content
|
|||
p
|
||||
span(data-i18n="account.unsubscribe") Unsubscribing for
|
||||
span
|
||||
strong= email
|
||||
strong= view.email
|
||||
|
||||
button.btn.btn-warning#unsubscribe-button(data-i18n="account.unsubscribe_button") Do it
|
||||
|
||||
|
|
|
@ -6,14 +6,12 @@ module.exports = class UnsubscribeView extends RootView
|
|||
id: 'unsubscribe-view'
|
||||
template: template
|
||||
|
||||
initialize: ->
|
||||
@email = @getQueryVariable 'email'
|
||||
|
||||
events:
|
||||
'click #unsubscribe-button': 'onUnsubscribeButtonClicked'
|
||||
|
||||
getRenderData: ->
|
||||
context = super()
|
||||
context.email = @getQueryVariable 'email'
|
||||
context
|
||||
|
||||
onUnsubscribeButtonClicked: ->
|
||||
@$el.find('#unsubscribe-button').hide()
|
||||
@$el.find('.progress').show()
|
||||
|
|
Loading…
Reference in a new issue