Show 'old' for Downloaded or Installed if older version is detected
This commit is contained in:
parent
7576dc3f31
commit
8e43a369fa
|
@ -91,13 +91,21 @@ function packageQuery() {
|
||||||
else
|
else
|
||||||
Update = "<span style=\"white-space:nowrap;\"><a><i class=\"fa fa-cloud-download\"></i> update ready</a></span>";
|
Update = "<span style=\"white-space:nowrap;\"><a><i class=\"fa fa-cloud-download\"></i> update ready</a></span>";
|
||||||
|
|
||||||
|
var Downloaded = data[i].downloaded;
|
||||||
|
if (data[i].downloadeq != data[i].downloaded)
|
||||||
|
Downloaded = 'old';
|
||||||
|
|
||||||
|
var Installed = data[i].installed;
|
||||||
|
if (data[i].installeq != data[i].installed)
|
||||||
|
Installed = 'old';
|
||||||
|
|
||||||
$("#tblPackages tbody").append(
|
$("#tblPackages tbody").append(
|
||||||
"<tr>"+
|
"<tr>"+
|
||||||
"<td class='package' title='"+data[i].desc+"'>"+data[i].name+"</td>"+ // package name
|
"<td class='package' title='"+data[i].desc+"'>"+data[i].name+"</td>"+ // package name
|
||||||
"<td>"+Update+"</td>"+ // package status
|
"<td>"+Update+"</td>"+ // package status
|
||||||
"<td>"+data[i].size+"</td>"+ // package size
|
"<td>"+data[i].size+"</td>"+ // package size
|
||||||
"<td>"+data[i].downloaded+"</td>"+ // package installed
|
"<td>"+Downloaded+"</td>"+ // package installed
|
||||||
"<td>"+data[i].installed+"</td>"+ // package installed
|
"<td>"+Installed+"</td>"+ // package installed
|
||||||
"<td><input class='pkgcheckbox' id='"+data[i].pkgname+"' type='checkbox'>"+
|
"<td><input class='pkgcheckbox' id='"+data[i].pkgname+"' type='checkbox'>"+
|
||||||
"<input class='pkgvalue' type='hidden' id='"+data[i].pkgname+"_value' name='"+data[i].pkgnver+"' value='"+data[i].config+"'></td>"+
|
"<input class='pkgvalue' type='hidden' id='"+data[i].pkgname+"_value' name='"+data[i].pkgnver+"' value='"+data[i].config+"'></td>"+
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user