1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #743: Enabled bulk creation of all device components

This commit is contained in:
Jeremy Stretch
2016-12-16 16:29:32 -05:00
parent 6f1532adac
commit c94d111401
5 changed files with 93 additions and 40 deletions

View File

@@ -51,6 +51,14 @@ $(document).ready(function() {
$('#id_' + this.value).toggle('disabled');
});
// Set formaction and submit using a link
$('a.formaction').click(function (event) {
event.preventDefault();
var form = $(this).closest('form');
form.attr('action', $(this).attr('href'));
form.submit();
});
// API select widget
$('select[filter-for]').change(function () {