From 8e43a369fa2b8a8aab9b5c82c565a3a9a901d9da Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sun, 24 Jan 2016 12:03:04 -0600 Subject: [PATCH] Show 'old' for Downloaded or Installed if older version is detected --- .../emhttp/plugins/NerdPack/js/jquery.NerdPack.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js index 49e520ea..f0ca72a1 100644 --- a/source/NerdPack/usr/local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js +++ b/source/NerdPack/usr/local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js @@ -91,13 +91,21 @@ function packageQuery() { else Update = " update ready"; + 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( ""+ ""+data[i].name+""+ // package name ""+Update+""+ // package status ""+data[i].size+""+ // package size - ""+data[i].downloaded+""+ // package installed - ""+data[i].installed+""+ // package installed + ""+Downloaded+""+ // package installed + ""+Installed+""+ // package installed ""+ ""+ "");