mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
fi
This commit is contained in:
parent
3a47785a47
commit
60e50d2ceb
@ -17,7 +17,8 @@ class SimpleListItemTag extends ListViewItemTag
|
|||||||
super r, o
|
super r, o
|
||||||
mount: () ->
|
mount: () ->
|
||||||
me = @
|
me = @
|
||||||
@refs.item.oncontextmenu = (e) ->
|
$(@refs.item).contextmenu (e) ->
|
||||||
|
e.item = me.root
|
||||||
me.get("oncontextmenu")(e)
|
me.get("oncontextmenu")(e)
|
||||||
|
|
||||||
$(@refs.item).click (e) ->
|
$(@refs.item).click (e) ->
|
||||||
@ -123,6 +124,7 @@ class ListViewTag extends Ant.OS.GUI.BaseTag
|
|||||||
@get("selectedItems").push e.item
|
@get("selectedItems").push e.item
|
||||||
e.items = @get("selectedItems")
|
e.items = @get("selectedItems")
|
||||||
else
|
else
|
||||||
|
return if @get("selectedItem") is e.item
|
||||||
@get("selectedItem").set "selected", false if @get("selectedItem")
|
@get("selectedItem").set "selected", false if @get("selectedItem")
|
||||||
@set "selectedItem", e.item
|
@set "selectedItem", e.item
|
||||||
@set "selectedItems", [e.item]
|
@set "selectedItems", [e.item]
|
||||||
|
Loading…
Reference in New Issue
Block a user