Sha256: 7ed9198a88fd6cbb2b4e13a807c263ee430afb80427734f912c40df91377636b
Contents?: true
Size: 1.1 KB
Versions: 280
Compression:
Stored size: 1.1 KB
Contents
I"X(function() { $(function() { return $('[data-acts-as-list-item]').each(function() { return $(this).draggable({ scope: $(this).attr('data-acts-as-list-item-scope'), revert: true }); }); }); $(function() { return $('[data-acts-as-list-item]').each(function() { var authenticity_token, redirect_target; redirect_target = $(this).attr('data-acts-as-list-item-on-drop-target'); authenticity_token = $('meta[name="csrf-token"]').attr('content'); return $(this).droppable({ accept: '.acts-as-list-item', scope: $(this).attr('data-acts-as-list-item-scope'), activeClass: 'btn-success', drop: function(event, ui) { var dropped_element, dropped_element_to_param; dropped_element = $(ui.draggable); dropped_element_to_param = dropped_element.attr('data-acts-as-list-item-uid'); return $.redirect(redirect_target, { authenticity_token: authenticity_token, dropped_id: dropped_element_to_param }); } }); }); }); }).call(this); :ET
Version data entries
280 entries across 232 versions & 12 rubygems