Explorar el Código

Fixes #558: Update slug field when name is populated without a key press

Jeremy Stretch hace 9 años
padre
commit
5e4fce248c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/project-static/js/forms.js

+ 1 - 1
netbox/project-static/js/forms.js

@@ -25,7 +25,7 @@ $(document).ready(function() {
     });
     if (slug_field) {
         var slug_source = $('#id_' + slug_field.attr('slug-source'));
-        slug_source.keyup(function() {
+        slug_source.on('keyup change', function() {
             if (slug_field && !slug_field.attr('_changed')) {
                 slug_field.val(slugify($(this).val(), 50));
             }