mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-08 13:36:30 +00:00
set _user.exp example
This commit is contained in:
parent
017e579386
commit
eb06eb70bc
1 changed files with 7 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ ready (model) ->
|
|||
|
||||
for habitType in lists
|
||||
list = model.at "_#{habitType}List"
|
||||
|
||||
|
||||
# Make the list draggable using jQuery UI
|
||||
ul = $("\##{habitType}s")
|
||||
ul.sortable
|
||||
|
|
@ -126,6 +126,12 @@ ready (model) ->
|
|||
# Derby extends model.at to support creation from DOM nodes
|
||||
model.at(e.target).remove()
|
||||
|
||||
exports.voteUp = (e) ->
|
||||
todo = model.at(e.target)
|
||||
exp = model.get '_user.exp'
|
||||
model.set '_user.exp', exp +1
|
||||
console.log todo
|
||||
|
||||
## RECONNECT & SHORTCUTS ##
|
||||
|
||||
showReconnect = model.at '_showReconnect'
|
||||
|
|
|
|||
Loading…
Reference in a new issue