Move repo download /update in to ajax backend code + added a button to check for updates

This commit is contained in:
Eric Schultz
2016-01-24 12:53:58 -06:00
parent 8e43a369fa
commit 5829a900e3
3 changed files with 12 additions and 12 deletions

View File

@ -81,9 +81,10 @@ $(function(){
});
//list all available packages in a table
function packageQuery() {
$("#tblPackages tbody").empty();
$.getJSON("/plugins/NerdPack/include/PackageQuery.php", function(data) {
function packageQuery(force) {
$("#tblPackages tbody").html("<tr><td colspan=\"6\"><br><i class=\"fa fa-spinner fa-spin icon\"></i><em>Please wait, retrieving plugin information ...</em></td><tr>");
$.getJSON("/plugins/NerdPack/include/PackageQuery.php", {force: force}, function(data) {
$("#tblPackages tbody").empty();
for (var i in data) {
var Update;
if (data[i].downloadeq == data[i].downloaded && data[i].installeq == data[i].installed)