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

Fixes : Bulk import of secrets does not prompt user to generate a session key

This commit is contained in:
Jeremy Stretch
2017-05-18 09:17:41 -04:00
parent 92aafb9043
commit f7969d91b3

@ -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');