Browse Source

Changed appearance of public keys

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

2
home/profile.php

@ -193,7 +193,7 @@ if (isset($_GET['id'])) @@ -193,7 +193,7 @@ if (isset($_GET['id']))
foreach ($keyList as $key)
{
?>
<div class="alert alert-success public_key_<?php echo $key; ?>"><button type="button" class="close public_key_delete" id="<?php echo $key; ?>">&times;</button><?php echo $key; ?></div>
<div class="row public_key_<?php echo $key; ?>"><input type="text" class="form-control" id="public_key_input_<?php echo $key; ?>" placeholder="<?php echo $key; ?>" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="<?php echo $key; ?>">Remove</button></span></div>
<?php
}
?>

4
templates/default/js/profile.js

@ -34,7 +34,7 @@ $(document).ready(function() { @@ -34,7 +34,7 @@ $(document).ready(function() {
prev_keys = $("#update_public_key").val();
var prev_split = prev_keys.split(",");
var key_used = false;
var index = fileList.indexOf(podFile);
var index = prev_split.indexOf(podFile);
if (index != -1)
{
key_used = true;
@ -49,7 +49,7 @@ $(document).ready(function() { @@ -49,7 +49,7 @@ $(document).ready(function() {
{
$("#update_public_key").val(result);
}
$("#public_key_list").append('<div class="alert alert-success public_key_'+result+'"><button type="button" class="close public_key_delete" id="'+result+'">&times;</button>'+result+'</div>');
$("#public_key_list").append('<div class="row public_key_'+result+'"><input type="text" class="form-control" id="public_key_input_'+result+'" placeholder="'+result+'" readonly><span class="input-group-btn"><button class="btn btn-danger public_key_delete" type="button" id="'+result+'">Remove</button></span></div>');
linkKeyDelete('.public_key_delete');
}
else

Loading…
Cancel
Save