mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 11:52:22 -06:00
Enable drag-and-drop of items within multiselect fields
This commit is contained in:
2
netbox/project-static/dist/netbox.js
vendored
2
netbox/project-static/dist/netbox.js
vendored
File diff suppressed because one or more lines are too long
4
netbox/project-static/dist/netbox.js.map
vendored
4
netbox/project-static/dist/netbox.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -20,6 +20,11 @@ export function getPlugins(element: HTMLSelectElement): object {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable drag-and-drop reordering of items on multi-select fields
|
||||||
|
if (element.hasAttribute('multiple')) {
|
||||||
|
plugins.drag_drop = {};
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: plugins,
|
plugins: plugins,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user