mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 04:38:55 +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"
|
||||
|
||||
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 = ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue