Sha256: 52cec1501d5202c74e3fd73838a4c71b2c60ee5e8c9f9b2e9ef4013a3ad95d18
Contents?: true
Size: 402 Bytes
Versions: 39
Compression:
Stored size: 402 Bytes
Contents
$ -> reindexSort = (context, inputName) -> sortInputs = $("input[name$='[#{inputName}]']", context) sortInputs.each (index) -> $(this).val index $("[data-sortable]").each -> context = $(this) inputName = $(this).attr("data-sortable") reindexSort context, inputName $(this).sortable items: "fieldset" update: (event, ui) -> reindexSort context, inputName
Version data entries
39 entries across 39 versions & 1 rubygems