From 7c0bb0e64254fc21bf544cd522ea30c5ddea35c8 Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Sat, 17 Feb 2018 16:39:14 -0700 Subject: [PATCH] add depends for borgbackup and pip --- .../local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 244bb59c..417d65e9 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 @@ -173,4 +173,12 @@ function checkDepends() { $('#perl').switchButton({checked: true}); $('#perl', '.pkgvalue').val('yes'); } + if ($('#borgbackup')[0].checked) { + $('#python3').switchButton({checked: true}); + $('#python3', '.pkgvalue').val('yes'); + } + if ($('#pip')[0].checked) { + $('#python').switchButton({checked: true}); + $('#python', '.pkgvalue').val('yes'); + } } \ No newline at end of file