Преглед на файлове

Fixed toggling of secret lock/unlock buttons

Jeremy Stretch преди 9 години
родител
ревизия
c3c3b80cd9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      netbox/project-static/js/secrets.js

+ 2 - 2
netbox/project-static/js/secrets.js

@@ -83,8 +83,8 @@ $(document).ready(function() {
             },
             },
             success: function (response, status) {
             success: function (response, status) {
                 $('#secret_' + secret_id).html(response.plaintext);
                 $('#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) {
             error: function (xhr, ajaxOptions, thrownError) {
                 if (xhr.status == 403) {
                 if (xhr.status == 403) {