1
0
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:
Jeremy Stretch
2021-02-25 11:47:26 -05:00
parent 3208c8317d
commit 992657cbe0
3 changed files with 34 additions and 0 deletions

View File

@@ -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,