mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04:00
Add skip button to Bloc offer
This commit is contained in:
parent
cae95f5952
commit
dc10dc3b61
2 changed files with 5 additions and 0 deletions
app
|
@ -125,4 +125,5 @@ block modal-footer-content
|
|||
img.pull-left(src="/file/db/level/55ca29439bc1892c835b0137/bloc_warrior.png")
|
||||
img.pull-right(src="/file/db/level/55ca29439bc1892c835b0137/bloc_logo.png")
|
||||
span(data-i18n="play_level.victory_bloc")
|
||||
button.btn.btn-illustrated.btn-warning.btn-lg.world-map-button.skip-offer-button(data-i18n="play_level.victory_play_continue") Continue
|
||||
button.btn.btn-illustrated.btn-primary.btn-lg.world-map-button.continue-from-offer-button(data-i18n="play_level.victory_bloc_cta")
|
||||
|
|
|
@ -30,6 +30,7 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
'click .return-to-ladder-button': 'onClickReturnToLadder'
|
||||
'click .sign-up-button': 'onClickSignupButton'
|
||||
'click .continue-from-offer-button': 'onClickContinueFromOffer'
|
||||
'click .skip-offer-button': 'onClickSkipOffer'
|
||||
|
||||
# Feedback events
|
||||
'mouseover .rating i': (e) -> @showStars(@starNum($(e.target)))
|
||||
|
@ -461,6 +462,9 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
Backbone.Mediator.publish 'router:navigate', @navigationEventUponCompletion
|
||||
window.open url, '_blank' if url
|
||||
|
||||
onClickSkipOffer: (e) ->
|
||||
Backbone.Mediator.publish 'router:navigate', @navigationEventUponCompletion
|
||||
|
||||
# Ratings and reviews
|
||||
|
||||
starNum: (starEl) -> starEl.prevAll('i').length + 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue