Index: build/chrome/ui.html ================================================================== --- build/chrome/ui.html +++ build/chrome/ui.html @@ -7,7 +7,8 @@

CACKey for Chrome

Certificate Provider:
Smartcard Readers:
Certificates:
+
Index: build/chrome/ui.js ================================================================== --- build/chrome/ui.js +++ build/chrome/ui.js @@ -116,12 +116,29 @@ }); return; } -setTimeout(function() { +function clearStatusInfo() { + document.getElementById('certificates').innerHTML = 'Loading...'; + document.getElementById('smartcard_readers').innerHTML = 'Loading...'; + document.getElementById('certificate_provider').innerHTML = 'Loading...'; +} + +function loadStatusInfo() { updateCertificates(document.getElementById('certificates')); updateSmartcardReaders(document.getElementById('smartcard_readers')); updateCertificateProvider(document.getElementById('certificate_provider')); +} + +setTimeout(function() { + loadStatusInfo(); + document.getElementById('reload').onclick = function() { + clearStatusInfo(); + setTimeout(function() { + loadStatusInfo(); + }, 1); + }; + return; }, 1);