From 5829a900e3de1e0f3fad5adf00c413de93398126 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sun, 24 Jan 2016 12:53:58 -0600 Subject: [PATCH] Move repo download /update in to ajax backend code + added a button to check for updates --- .../usr/local/emhttp/plugins/NerdPack/NerdPack.page | 10 +--------- .../emhttp/plugins/NerdPack/include/PackageQuery.php | 7 +++++++ .../emhttp/plugins/NerdPack/js/jquery.NerdPack.js | 7 ++++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/NerdPack.page b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/NerdPack.page index 0efea1d9..326c85a6 100644 --- a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/NerdPack.page +++ b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/NerdPack.page @@ -2,14 +2,6 @@ Icon="NerdPack.png" Menu="NetworkServices" Title="Nerd Pack" --- - - .css"> @@ -35,7 +27,7 @@ get_content_from_github($pkg_desc, $desc_file); - + : diff --git a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php index 56565b31..743c3e9b 100644 --- a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php +++ b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/include/PackageQuery.php @@ -1,5 +1,12 @@
Please wait, retrieving plugin information ..."); + $.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)