From f7969d91b30bc92d6c3c4e371617249a4a975b6c Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 18 May 2017 09:17:41 -0400 Subject: [PATCH] Fixes #1199: Bulk import of secrets does not prompt user to generate a session key --- netbox/project-static/js/secrets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');