From f4b18189989d694854feb941672c76ea78ba4940 Mon Sep 17 00:00:00 2001 From: dmacias72 Date: Sat, 8 Oct 2016 14:37:20 -0600 Subject: [PATCH] fix missing cookie --- .../local/emhttp/plugins/NerdPack/js/jquery.NerdPack.js | 7 +++---- 1 file changed, 3 insertions(+), 4 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 c64ae731..72b16a46 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 @@ -63,11 +63,10 @@ $(function(){ // set cookie on apply button press $('#btnApply').click(function() { checkDepends(); - + var Arg2 = (typeof $.cookie('nerdpack_packages_uninstall') === 'undefined') ? '' : '&arg2='+$.cookie('nerdpack_packages_uninstall'); + var Arg3 = (typeof $.cookie('nerdpack_packages_delete') === 'undefined') ? '' : '&arg3='+$.cookie('nerdpack_packages_delete'); $.post('/update.php', $('#package_form').serializeArray(), function() { - openBox('/plugins/NerdPack/scripts/packagemanager&arg1=--download'+ - '&arg2='+$.cookie('nerdpack_packages_uninstall')+ - '&arg3='+$.cookie('nerdpack_packages_delete'), + openBox('/plugins/NerdPack/scripts/packagemanager&arg1=--download'+ Arg2 + Arg3, 'Package Manager', 600, 900, true); } );