mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
performance boost - only re-establish popover / tooltips on saving task
This commit is contained in:
parent
d20fccea75
commit
e6e960ae5e
2 changed files with 5 additions and 5 deletions
|
|
@ -105,11 +105,6 @@ setupSortable = (model) ->
|
|||
setupTooltips = (model) ->
|
||||
$('[rel=tooltip]').tooltip()
|
||||
$('[rel=popover]').popover()
|
||||
# FIXME: this isn't very efficient, do model.on set for specific attrs for popover
|
||||
model.on 'set', '*', ->
|
||||
$('[rel=tooltip]').tooltip()
|
||||
$('[rel=popover]').popover()
|
||||
|
||||
|
||||
setupTour = (model) ->
|
||||
tourSteps = [
|
||||
|
|
|
|||
|
|
@ -172,3 +172,8 @@ module.exports.app = (appExports, model) ->
|
|||
direction = 'down' if direction == 'false/'
|
||||
task = model.at $(el).parents('li')[0]
|
||||
scoring.score(model, task.get('id'), direction)
|
||||
|
||||
appExports.tasksSaveAndClose = ->
|
||||
# When they update their notes, re-establish tooltip & popover
|
||||
$('[rel=tooltip]').tooltip()
|
||||
$('[rel=popover]').popover()
|
||||
|
|
|
|||
Loading…
Reference in a new issue