mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Introduce SelectSpeedWidget
This commit is contained in:
@@ -103,6 +103,12 @@ $(document).ready(function() {
|
||||
return data.text;
|
||||
}
|
||||
|
||||
// Speed selector
|
||||
$("a.set_speed").click(function(e) {
|
||||
e.preventDefault();
|
||||
$("#id_" + $(this).attr("target")).val($(this).attr("data"));
|
||||
});
|
||||
|
||||
// Color Picker
|
||||
$('.netbox-select2-color-picker').select2({
|
||||
allowClear: true,
|
||||
|
Reference in New Issue
Block a user