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

#3810: Fix bug in Javascript

This commit is contained in:
Jeremy Stretch
2020-02-20 10:20:19 -05:00
parent 322b328584
commit 584539d0a3

View File

@ -45,7 +45,7 @@ $(document).ready(function() {
if (slug_field) {
var slug_source = $('#id_' + slug_field.attr('slug-source'));
var slug_length = slug_field.attr('maxlength');
if (slug_field[0].value) {
if (slug_field.val()) {
slug_field.attr('_changed', true);
}
slug_field.change(function() {