mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
Adding to daily list as well (need to refactor)
This commit is contained in:
parent
a6079d6469
commit
1b41564a6c
1 changed files with 18 additions and 0 deletions
|
|
@ -19,6 +19,24 @@ $(document).ready ->
|
||||||
$("#habits").effect "highlight"
|
$("#habits").effect "highlight"
|
||||||
|
|
||||||
url: "/habits/sort"
|
url: "/habits/sort"
|
||||||
|
|
||||||
|
$(document).ready ->
|
||||||
|
$("#daily").sortable
|
||||||
|
axis: "y"
|
||||||
|
dropOnEmpty: false
|
||||||
|
cursor: "move"
|
||||||
|
items: "li"
|
||||||
|
opacity: 0.4
|
||||||
|
scroll: true
|
||||||
|
update: ->
|
||||||
|
$.ajax
|
||||||
|
type: "post"
|
||||||
|
data: $("#daily").sortable("serialize")
|
||||||
|
dataType: "script"
|
||||||
|
complete: (request) ->
|
||||||
|
$("#daily").effect "highlight"
|
||||||
|
|
||||||
|
url: "/habits/sort"
|
||||||
|
|
||||||
(($) ->
|
(($) ->
|
||||||
$.fn.highlight = ->
|
$.fn.highlight = ->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue