mirror of
https://github.com/friendica/friendica
synced 2025-04-26 10:30:11 +00:00
Add sortability to custom profile fields form
This commit is contained in:
parent
9bc78efe68
commit
cc007f715d
8 changed files with 61 additions and 4 deletions
13
view/js/module/settings/profile/index.js
Normal file
13
view/js/module/settings/profile/index.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
$(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();
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue