Browse Source

Fixed removing key from list not removing key from hidden input

tags/v1.1
Teknikode 5 years ago
parent
commit
6007b1a80a
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      templates/default/js/profile.js

+ 3
- 2
templates/default/js/profile.js View File

@@ -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