mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
some typo fixes
This commit is contained in:
parent
7764447355
commit
9854bc1a3c
3 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
content = require('./content')
|
||||
|
||||
_ = require 'underscore'
|
||||
|
||||
module.exports.resetDom = (model) ->
|
||||
window.DERBY.app.dom.clear()
|
||||
|
|
@ -60,7 +60,7 @@ module.exports.setupSortable = (model) ->
|
|||
# Also, note that refList index arguments can either be an index
|
||||
# or the item's id property
|
||||
model.at("_#{type}List").pass(ignore: domId).move {id}, to
|
||||
setupSortable(type) for type in ['habit', 'daily', 'todo', 'reward']
|
||||
_.each ['habit', 'daily', 'todo', 'reward'], (type) -> setupSortable(type)
|
||||
|
||||
module.exports.setupTooltips = (model) ->
|
||||
$('[rel=tooltip]').tooltip()
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ ready (model) ->
|
|||
batch.set 'tasks', {}
|
||||
_.each taskTypes, (type) -> batch.set "idLists.#{type}", []
|
||||
batch.set 'balance', 2 if user.get('balance') < 2 #only if they haven't manually bought tokens
|
||||
revive(batch, true)
|
||||
revive(batch)
|
||||
batch.commit()
|
||||
browser.resetDom(model)
|
||||
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ cron = () ->
|
|||
batch.setStats()
|
||||
batch.set('history', obj.history)
|
||||
batch.commit()
|
||||
require('./browser').reset(model)
|
||||
browser.resetDom(model)
|
||||
setTimeout (-> user.set 'stats.hp', hpAfter), 1000 # animate hp loss
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue