mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #1199: Bulk import of secrets does not prompt user to generate a session key
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user