Sha256: a69e7fc2f41eb8c125dfbcc80630823318e9be9e65733d0c323fe7a4cbda4d38
Contents?: true
Size: 858 Bytes
Versions: 8
Compression:
Stored size: 858 Bytes
Contents
$(function(){ function updateSortable(event, ui){ var self = $(ui.item), prev = $(self.prevAll('.can-drag')[0]), id = prev.length > 0 ? prev.data('id') : '' $.post(self.data('put-url'), {reposition:id, _method: 'put'}) } $("ul.sortable").sortable({ containment: 'parent', update: updateSortable }) $(".page-part-list").sortable({ items: '.draggable-box', opacity: 0.3, containment: 'parent', handle: '.drag-handler', update: updateSortable }) $(".page-part-list .drag-handler").mouseenter(function(){ $(this).parent().parent().addClass("will-drag") }) .mouseleave(function(){ $(this).parent().parent().removeClass("will-drag") }) $(".draggable-box").mouseleave(function(){ $(this).removeClass("will-drag") }) $('.colored-box textarea.text').elastic(); })
Version data entries
8 entries across 8 versions & 1 rubygems