From 4bfa7b7d0c49d2f6a47f0b279122cefac1752194 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 25 Apr 2018 16:08:50 +0200 Subject: [rebootcontrol] Fix keypair regen feedback --- .../rebootcontrol/templates/header.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/modules-available/rebootcontrol/templates/header.html b/modules-available/rebootcontrol/templates/header.html index b84cb426..e171ccd6 100644 --- a/modules-available/rebootcontrol/templates/header.html +++ b/modules-available/rebootcontrol/templates/header.html @@ -41,11 +41,14 @@ @@ -60,4 +63,17 @@ window.location.replace("?do=rebootcontrol&location="+location); } + function generateNewKeypair() { + if (!confirm('{{lang_confirmNewKeypair}}')) + return; + $.ajax({ + url: '?do=rebootcontrol', + type: 'POST', + data: { action: "generateNewKeypair", token: TOKEN }, + success: function(value) { + $('#pubkey').text(value); + } + }); + } + \ No newline at end of file -- cgit v1.2.3-55-g7522