mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-23 19:17:01 +00:00
Added possibility to upgrade from GUI if there is enough RAM for SSL
This commit is contained in:
parent
e78d59c31a
commit
6f09f523e4
@ -253,7 +253,11 @@ var fetch = function() {
|
||||
$('.ju').html(moment.duration(parseInt(json.u), 'seconds').humanize());
|
||||
}
|
||||
|
||||
$('.jm').html((parseInt(json.m).toFixed(0)/1000).toFixed(1));
|
||||
var kib = parseInt(json.m)/1000;
|
||||
$('.jm').html(kib.toFixed(1));
|
||||
if(kib > 32) {
|
||||
$('.ssl-capable').removeClass('d-none');
|
||||
}
|
||||
|
||||
setStatus("esp", json.em);
|
||||
setStatus("han", json.hm);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<div id="newVersion" class="alert alert-info d-none">New version <span id="newVersionTag"></span>! <a id="newVersionUrl" href="#" target="_blank">view</a></div>
|
||||
<div id="newVersion" class="alert alert-info d-none">New version <span id="newVersionTag"></span>! <a id="newVersionUrl" href="#" target="_blank">view</a><span class="d-none ssl-capable"> or <a href="javascript:upgrade();">upgrade</a></span></div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user