mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Hide the play button on the inventory screen until the items have fully loaded.
This commit is contained in:
parent
a3d88eb975
commit
563c886bdd
1 changed files with 2 additions and 0 deletions
|
@ -80,7 +80,9 @@ module.exports = class InventoryModal extends ModalView
|
|||
|
||||
afterRender: ->
|
||||
super()
|
||||
@$el.find('.modal-footer button').css('visibility', 'hidden')
|
||||
return unless @supermodel.finished()
|
||||
@$el.find('.modal-footer button').css('visibility', 'visible')
|
||||
|
||||
keys = (item.get('original') for item in @items.models)
|
||||
itemMap = _.zipObject keys, @items.models
|
||||
|
|
Loading…
Reference in a new issue