mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Merge pull request #2948 from Imperadeiro98/master
Use playSound in PlayItemsModal.coffee
This commit is contained in:
commit
e041c288cc
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ module.exports = class PlayItemsModal extends ModalView
|
|||
afterRender: ->
|
||||
super()
|
||||
return unless @supermodel.finished()
|
||||
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-open', volume: 1
|
||||
@playSound 'game-menu-open'
|
||||
@$el.find('.nano:visible').nanoScroller({alwaysVisible: true})
|
||||
@itemDetailsView = new ItemDetailsView()
|
||||
@insertSubView(@itemDetailsView)
|
||||
|
@ -133,7 +133,7 @@ module.exports = class PlayItemsModal extends ModalView
|
|||
|
||||
onHidden: ->
|
||||
super()
|
||||
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'game-menu-close', volume: 1
|
||||
@playSound 'game-menu-close'
|
||||
|
||||
|
||||
#- Click events
|
||||
|
|
Loading…
Reference in a new issue