mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-03 17:33:31 -04:00
Play problem alert sound on jiggle
This commit is contained in:
parent
ab9d5b2171
commit
1f11ad66ed
1 changed files with 1 additions and 1 deletions
|
@ -62,10 +62,10 @@ module.exports = class ProblemAlertView extends CocoView
|
||||||
return unless @problem?
|
return unless @problem?
|
||||||
@$el.show() unless @$el.is(":visible")
|
@$el.show() unless @$el.is(":visible")
|
||||||
@$el.addClass 'jiggling'
|
@$el.addClass 'jiggling'
|
||||||
|
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'error_appear', volume: 1.0
|
||||||
pauseJiggle = =>
|
pauseJiggle = =>
|
||||||
@$el?.removeClass 'jiggling'
|
@$el?.removeClass 'jiggling'
|
||||||
_.delay pauseJiggle, 2000
|
_.delay pauseJiggle, 2000
|
||||||
|
|
||||||
|
|
||||||
onHideProblemAlert: ->
|
onHideProblemAlert: ->
|
||||||
@onRemoveClicked()
|
@onRemoveClicked()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue