Browse Source

Fixed removing key from list not removing key from hidden input

pull/24/head
Teknikode 8 years ago
parent
commit
6007b1a80a
  1. 5
      templates/default/js/profile.js

5
templates/default/js/profile.js

@ -100,9 +100,10 @@ function linkKeyDelete(selector) @@ -100,9 +100,10 @@ function linkKeyDelete(selector)
{
$(selector).click(function(){
var object = $(this);
key=encodeURIComponent(object.attr('id'));
key_index=object.attr('id');
key=$('#public_key_input_'+key_index.toString()).val();
prev_keys = $("#update_public_key").val();
var prev_split = prev_keys.split(",");
var prev_split = prev_keys.split(",");
var index = prev_split.indexOf(key);
if (index != -1)
{

Loading…
Cancel
Save