Check-in [8e5aed79dc]
Overview
Comment:Added reload button to CACKey UI page to reload info more easily
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8e5aed79dc34b7a96bf067bbd1598220a4fe79cc
User & Date: rkeene on 2019-01-30 17:47:00
Other Links: manifest | tags
Context
2019-01-30
17:47
Whitespace cleanup check-in: 90921f9444 user: rkeene tags: trunk
17:47
Added reload button to CACKey UI page to reload info more easily check-in: 8e5aed79dc user: rkeene tags: trunk
17:24
Only display extended key usage if it is present in the certificate check-in: 731ccabde6 user: rkeene tags: trunk
Changes

Modified build/chrome/ui.html from [e2cfa8c888] to [646f12701f].

     5      5   		<script type="text/javascript" src="ui.js"></script>
     6      6   	</head>
     7      7   	<body>
     8      8   		<h1>CACKey for Chrome</h1>
     9      9   		<div>Certificate Provider: <span id="certificate_provider"></span></div>
    10     10   		<div>Smartcard Readers: <span id="smartcard_readers"></span></div>
    11     11   		<div>Certificates: <span id="certificates"></span></div>
           12  +		<div><button id="reload">Refresh</button></div>
    12     13   	</body>
    13     14   </html>

Modified build/chrome/ui.js from [ae57f2ddff] to [019205436c].

   114    114   
   115    115   		return;
   116    116   	});
   117    117   
   118    118   	return;
   119    119   }
   120    120   
   121         -setTimeout(function() {
          121  +function clearStatusInfo() {
          122  +	document.getElementById('certificates').innerHTML = '<i>Loading...</i>';
          123  +	document.getElementById('smartcard_readers').innerHTML = '<i>Loading...</i>';
          124  +	document.getElementById('certificate_provider').innerHTML = '<i>Loading...</i>';
          125  +}
          126  +
          127  +function loadStatusInfo() {
   122    128   	updateCertificates(document.getElementById('certificates'));
   123    129   	updateSmartcardReaders(document.getElementById('smartcard_readers'));
   124    130   	updateCertificateProvider(document.getElementById('certificate_provider'));
          131  +}
          132  +
          133  +setTimeout(function() {
          134  +	loadStatusInfo();
   125    135   
          136  +	document.getElementById('reload').onclick = function() {
          137  +		clearStatusInfo();
          138  +		setTimeout(function() {
          139  +			loadStatusInfo();
          140  +		}, 1);
          141  +	};
          142  +	
   126    143   	return;
   127    144   }, 1);