Sha256: 522426d92595fc723e65d9b8717ac60f00e945fa9fd53f5607d581f12fbbbc5b
Contents?: true
Size: 1.17 KB
Versions: 103
Compression:
Stored size: 1.17 KB
Contents
I"¦(function() { $(function() { return $('[data-awesome-nested-set-item]').each(function() { return $(this).draggable({ scope: $(this).attr('data-awesome-nested-set-item-scope'), revert: true }); }); }); $(function() { return $('[data-awesome-nested-set-item]').each(function() { var authenticity_token, redirect_target; redirect_target = $(this).attr('data-awesome-nested-set-item-on-drop-target'); console.log(redirect_target); authenticity_token = $('meta[name="csrf-token"]').attr('content'); return $(this).droppable({ accept: '.awesome-nested-set-item', scope: $(this).attr('data-awesome-nested-set-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-awesome-nested-set-item-uid'); return $.redirect(redirect_target, { authenticity_token: authenticity_token, dropped_id: dropped_element_to_param }); } }); }); }); }).call(this); :ET
Version data entries
103 entries across 103 versions & 9 rubygems