mirror of
https://github.com/friendica/friendica
synced 2024-12-27 10:02:19 +00:00
14 lines
349 B
JavaScript
14 lines
349 B
JavaScript
|
$(function () {
|
||
|
$("#profile-custom-fields").sortable({
|
||
|
containerSelector: 'div#profile-custom-fields',
|
||
|
handle: 'legend',
|
||
|
itemSelector: 'fieldset',
|
||
|
placeholder: '<div class="placeholder"></div>',
|
||
|
onDrag: function($item, position, _super, event) {
|
||
|
delete position['left'];
|
||
|
$item.css(position);
|
||
|
event.preventDefault();
|
||
|
}
|
||
|
});
|
||
|
});
|