Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
taroxd committed Nov 17, 2015
1 parent 7d9070c commit 7ea2220
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion views/index.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ItemInfoArea = React.createClass
getInitialState: ->
itemTypeChecked = new Array(maxSlotType + 1)
itemTypeChecked.fill true
itemTypeChecked: itemTypeChecked
{itemTypeChecked}

changeCheckbox: (callback) ->
callback @state.itemTypeChecked
Expand Down
4 changes: 2 additions & 2 deletions views/item-info-checkbox-area.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ ItemInfoCheckboxArea = React.createClass
onChange={@handleClickCheckbox.bind(@, index)}
onContextMenu={@handleClickCheckboxRightClick.bind(@, index)}
checked={isChecked}
/>
/>
<img src={
path = require 'path'
path.join(ROOT, 'assets', 'img', 'slotitem', "#{index + 100}.png")
}
/>
/>
</Col>
}
</Row>
Expand Down
6 changes: 2 additions & 4 deletions views/item-info-table-area.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ ItemInfoTableArea = React.createClass
rows.sort (a, b) -> a.iconIndex - b.iconIndex
for row in rows
for shipsInLevel in row.ships
shipsInLevel?.sort (a, b) ->
b.level - a.level || a.id - b.id
shipsInLevel?.sort (a, b) -> b.level - a.level || a.id - b.id
rows
handleFilterNameChange: ->
key = @refs.input.getValue()
Expand All @@ -150,8 +149,7 @@ ItemInfoTableArea = React.createClass
filterName ?= (name) -> name.indexOf(key) >= 0
else
filterName = @alwaysTrue
@setState
filterName: filterName
@setState {filterName}
alwaysTrue: -> true
handleResponse: (e) ->
{method, path, body, postBody} = e.detail
Expand Down

0 comments on commit 7ea2220

Please sign in to comment.