change uninstallpkg to class

This commit is contained in:
dmacias72 2017-10-03 08:02:28 -06:00
parent e55426bb0a
commit e367ecea39

View File

@ -28,7 +28,7 @@ $(function(){
checked: $.cookie('nerdpack_packages_uninstall') == '--uninstall' checked: $.cookie('nerdpack_packages_uninstall') == '--uninstall'
}) })
.change(function () { .change(function () {
$.cookie('nerdpack_packages_uninstall', $('#uninstallpkg')[0].checked ? '--uninstall' : '', { expires: 3650 }); $.cookie('nerdpack_packages_uninstall', $('.uninstallpkg')[0].checked ? '--uninstall' : '', { expires: 3650 });
}); });
// select all packages switch // select all packages switch
@ -173,4 +173,4 @@ function checkDepends() {
$('#perl').switchButton({checked: true}); $('#perl').switchButton({checked: true});
$('#perl', '.pkgvalue').val('yes'); $('#perl', '.pkgvalue').val('yes');
} }
} }