1
1
Fork 0
friendica_2019-12_sharedHos.../view/js/module/settings/profile/index.js

14 lines
349 B
JavaScript
Raw Normal View History

$(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();
}
});
});