1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #2761: Show ssh key if it present in the template

(cherry picked from commit b6b7034fe80a6f7889f5c4245c058109c8f9ba73)
This commit is contained in:
Daniel Molina 2014-12-16 14:56:04 +01:00
parent 8dd84cdcc3
commit c7ddfce1cd

View File

@ -688,6 +688,11 @@ function updateUserInfo(request,user){
$("#user_ssh_public_key_text", "#user_info_panel").show();
$("#user_ssh_public_key_textarea", "#user_info_panel").hide();
});
if (ssh_key) {
$("#user_ssh_public_key_text", "#user_info_panel").text(ssh_key);
$("#user_ssh_public_key_textarea", "#user_info_panel").val(ssh_key);
}
};
// Used also from groups-tabs.js