mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-25 21:43:47 -04:00
Merge pull request #2344 from laituan245/master
Fix issue #1832 (Equipping with little equip button doesn't update big equip button)
This commit is contained in:
commit
1a44b3ff5a
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,7 @@ module.exports = class InventoryModal extends ModalView
|
|||
|
||||
onUnequippedItemClick: (e) ->
|
||||
return if @justDoubleClicked
|
||||
return if @justClickedEquipItemButton
|
||||
itemEl = $(e.target).closest('.item')
|
||||
#@playSound 'menu-button-click'
|
||||
@selectUnequippedItem(itemEl)
|
||||
|
@ -270,6 +271,8 @@ module.exports = class InventoryModal extends ModalView
|
|||
itemEl = $(e.target).closest('.item')
|
||||
@selectUnequippedItem(itemEl)
|
||||
@equipSelectedItem()
|
||||
@justClickedEquipItemButton = true
|
||||
_.defer => @justClickedEquipItemButton = false
|
||||
|
||||
#- Select/equip higher-level, all encompassing methods the callbacks all use
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue