Remove ProblemAlertView help button

This commit is contained in:
Nick Winter 2015-11-14 17:33:05 -08:00
parent aee2f7c219
commit 5d9d5c0ae6
3 changed files with 0 additions and 9 deletions

View file

@ -64,9 +64,6 @@
&.alert-info
border-image-source: url(/images/level/code_editor_info_background.png)
#problem-alert-help-button
float: right
html.no-borderimage
.problem-alert
border-width: 0

View file

@ -6,4 +6,3 @@ if hint
span.problem-subtitle!= message
else
span.problem-title!= message
button.btn.btn-lg.btn-info.banner#problem-alert-help-button(data-i18n="common.help")

View file

@ -18,7 +18,6 @@ module.exports = class ProblemAlertView extends CocoView
events:
'click .close': 'onRemoveClicked'
'click #problem-alert-help-button': 'onClickProblemAlertHelp'
constructor: (options) ->
super options
@ -89,10 +88,6 @@ module.exports = class ProblemAlertView extends CocoView
return unless @$el.is(':visible')
@onRemoveClicked()
onClickProblemAlertHelp: ->
application.tracker?.trackEvent 'Problem alert help clicked', {levelID: @level.get('slug'), ls: @session?.get('_id')}
@openModalView new GameMenuModal showTab: 'guide', level: @level, session: @session, supermodel: @supermodel
onRemoveClicked: ->
@playSound 'menu-button-click'
@$el.hide()