From b19e69b2c9f566a2ad11e7f4947f15c129c2a563 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 4 Aug 2016 14:42:34 -0400 Subject: [PATCH] Fixed toggling of secret lock/unlock buttons --- netbox/project-static/js/secrets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/project-static/js/secrets.js b/netbox/project-static/js/secrets.js index 181984b71..7f67cdcda 100644 --- a/netbox/project-static/js/secrets.js +++ b/netbox/project-static/js/secrets.js @@ -83,8 +83,8 @@ $(document).ready(function() { }, success: function (response, status) { $('#secret_' + secret_id).html(response.plaintext); - $('button.unlock-secret').hide(); - $('button.lock-secret').show(); + $('button.unlock-secret[secret-id=' + secret_id + ']').hide(); + $('button.lock-secret[secret-id=' + secret_id + ']').show(); }, error: function (xhr, ajaxOptions, thrownError) { if (xhr.status == 403) {