fix: the 'all' and 'clear all' btns do not make sense when choosing printers (#7465)

fix: the 'all' and 'clear all' btns do not make sense when choosing or adding printers

Co-authored-by: meiliang1123 <meiliang1123@126.com>
This commit is contained in:
xiaoyeliu 2024-12-01 21:50:10 +08:00 committed by GitHub
parent 776901005c
commit 5178fee0f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -303,12 +303,18 @@ function FilterModelList(keyword) {
function SelectPrinterAll( sVendor )
{
$("input[vendor='"+sVendor+"']").prop("checked", true);
$("input[vendor='"+sVendor+"']").each(function() {
CheckBoxOnclick(this);
});
}
function SelectPrinterNone( sVendor )
{
$("input[vendor='"+sVendor+"']").prop("checked", false);
$("input[vendor='"+sVendor+"']").each(function() {
CheckBoxOnclick(this);
});
}

View File

@ -303,12 +303,18 @@ function FilterModelList(keyword) {
function SelectPrinterAll( sVendor )
{
$("input[vendor='"+sVendor+"']").prop("checked", true);
$("input[vendor='"+sVendor+"']").each(function() {
CheckBoxOnclick(this);
});
}
function SelectPrinterNone( sVendor )
{
$("input[vendor='"+sVendor+"']").prop("checked", false);
$("input[vendor='"+sVendor+"']").each(function() {
CheckBoxOnclick(this);
});
}
function OnExitFilter() {