mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
set _user.exp example
This commit is contained in:
@@ -126,6 +126,12 @@ ready (model) ->
|
|||||||
# Derby extends model.at to support creation from DOM nodes
|
# Derby extends model.at to support creation from DOM nodes
|
||||||
model.at(e.target).remove()
|
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 ##
|
## RECONNECT & SHORTCUTS ##
|
||||||
|
|
||||||
showReconnect = model.at '_showReconnect'
|
showReconnect = model.at '_showReconnect'
|
||||||
|
|||||||
Reference in New Issue
Block a user