diff --git a/netbox/project-static/js/secrets.js b/netbox/project-static/js/secrets.js index 89326ff15..638638623 100644 --- a/netbox/project-static/js/secrets.js +++ b/netbox/project-static/js/secrets.js @@ -16,7 +16,7 @@ $(document).ready(function() { // Adding/editing a secret $('form').submit(function(event) { - $(this).find('input.requires-session-key').each(function() { + $(this).find('.requires-session-key').each(function() { if (this.value && document.cookie.indexOf('session_key') == -1) { console.log('Field ' + this.value + ' requires a session key'); $('#privkey_modal').modal('show');