Browse Source

Added spacing after each key

pull/24/head
Teknikode 8 years ago
parent
commit
fdab2ee73b
  1. 2
      home/profile.php
  2. 2
      templates/default/js/profile.js

2
home/profile.php

@ -194,7 +194,7 @@ if (isset($_GET['id'])) @@ -194,7 +194,7 @@ if (isset($_GET['id']))
foreach ($keyList as $key)
{
?>
<div class="input-group public_key_<?php echo $index; ?>"><input type="text" class="form-control" id="public_key_input_<?php echo $index; ?>" value="<?php echo $key; ?>" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="<?php echo $index; ?>">Remove</button></span></div>
<div class="input-group public_key_<?php echo $index; ?>"><input type="text" class="form-control" id="public_key_input_<?php echo $index; ?>" value="<?php echo $key; ?>" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="<?php echo $index; ?>">Remove</button></span></div><br />
<?php
$index++;
}

2
templates/default/js/profile.js

@ -51,7 +51,7 @@ $(document).ready(function() { @@ -51,7 +51,7 @@ $(document).ready(function() {
$("#update_public_key").val(result);
}
var key_index = num_keys + 1;
$("#public_key_list").append('<div class="input-group public_key_'+key_index.toString()+'"><input type="text" class="form-control" id="public_key_input_'+key_index.toString()+'" value="'+result+'" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="'+key_index.toString()+'">Remove</button></span></div>');
$("#public_key_list").append('<div class="input-group public_key_'+key_index.toString()+'"><input type="text" class="form-control" id="public_key_input_'+key_index.toString()+'" value="'+result+'" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="'+key_index.toString()+'">Remove</button></span></div><br />');
linkKeyDelete('.public_key_delete');
}
else

Loading…
Cancel
Save