mirror of
https://github.com/friendica/friendica
synced 2024-11-15 16:53:54 +00:00
17 lines
458 B
JavaScript
17 lines
458 B
JavaScript
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
$(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();
|
|
}
|
|
});
|
|
});
|