mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed drag and drop for hero inventory.
This commit is contained in:
parent
ec548fa33a
commit
786820e056
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ module.exports = class InventoryView extends CocoView
|
|||
@onSelectionChanged()
|
||||
|
||||
onAvailableItemDoubleClick: (e) ->
|
||||
@selectAvailableItem $(e.target).closest('.list-group-item')
|
||||
@selectAvailableItem $(e.target).closest('.list-group-item') if e
|
||||
@onSelectionChanged()
|
||||
slot = @getSelectedSlot()
|
||||
slot = @$el.find('.item-slot:not(.disabled):first') if not slot.length
|
||||
|
|
Loading…
Reference in a new issue