Sha256: 00a4b970b38014da2f68482fb9472820e719d6ec186427adff61ac2158fea9d7
Contents?: true
Size: 451 Bytes
Versions: 8
Compression:
Stored size: 451 Bytes
Contents
$(document).ready(function() { $(".category_list").sortable({ handle : '.handle', update : function (event, ui) { var orderedElements = new Array(); ui.item.parent().children().each(function(index, value){ orderedElements.push(value.id.match(/[\d]*$/)) }); $.post("/repository/categories/sort", {'category_list[]': orderedElements, authenticity_token: window.rails_authenticity_token}); } }); });
Version data entries
8 entries across 8 versions & 1 rubygems