fix missing cookie
This commit is contained in:
parent
4d901d931b
commit
f4b1818998
|
@ -63,11 +63,10 @@ $(function(){
|
||||||
// set cookie on apply button press
|
// set cookie on apply button press
|
||||||
$('#btnApply').click(function() {
|
$('#btnApply').click(function() {
|
||||||
checkDepends();
|
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() {
|
$.post('/update.php', $('#package_form').serializeArray(), function() {
|
||||||
openBox('/plugins/NerdPack/scripts/packagemanager&arg1=--download'+
|
openBox('/plugins/NerdPack/scripts/packagemanager&arg1=--download'+ Arg2 + Arg3,
|
||||||
'&arg2='+$.cookie('nerdpack_packages_uninstall')+
|
|
||||||
'&arg3='+$.cookie('nerdpack_packages_delete'),
|
|
||||||
'Package Manager', 600, 900, true);
|
'Package Manager', 600, 900, true);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user