1
0
This repository has been archived on 2025-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
LuckyCoinkydink/templates/2k11/admin/dragdrop.js
2013-05-24 20:40:39 +02:00

16 lines
707 B
JavaScript

jQuery("document").ready(function() {
// TODO: Add autoscrolling
jQuery('.pluginmanager_container').sortable(
{
containerSelector: '.pluginmanager_container',
group: 'plugins', // TODO: Distinguish between sidebar and event-plugin-container
handle: '.pluginmanager_grablet',
onDrop: function ($item, container, _super) {
var placement = $item.parents('.pluginmanager_container').data("placement");
$item.find('input[name$="placement]"]').val(placement);
$item.removeClass("dragged").removeAttr("style")
jQuery("body").removeClass("dragging")
}
}
);
});