Skip to content

Commit 5178fee

Browse files
womendoushihaoyinmeiliang1123
andauthoredDec 1, 2024
fix: the 'all' and 'clear all' btns do not make sense when choosing printers (SoftFever#7465)
fix: the 'all' and 'clear all' btns do not make sense when choosing or adding printers Co-authored-by: meiliang1123 <meiliang1123@126.com>
1 parent 7769010 commit 5178fee

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎resources/web/guide/21/21.js

+6
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,18 @@ function FilterModelList(keyword) {
303303
function SelectPrinterAll( sVendor )
304304
{
305305
$("input[vendor='"+sVendor+"']").prop("checked", true);
306+
$("input[vendor='"+sVendor+"']").each(function() {
307+
CheckBoxOnclick(this);
308+
});
306309
}
307310

308311

309312
function SelectPrinterNone( sVendor )
310313
{
311314
$("input[vendor='"+sVendor+"']").prop("checked", false);
315+
$("input[vendor='"+sVendor+"']").each(function() {
316+
CheckBoxOnclick(this);
317+
});
312318
}
313319

314320

‎resources/web/guide/24/24.js

+6
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,18 @@ function FilterModelList(keyword) {
303303
function SelectPrinterAll( sVendor )
304304
{
305305
$("input[vendor='"+sVendor+"']").prop("checked", true);
306+
$("input[vendor='"+sVendor+"']").each(function() {
307+
CheckBoxOnclick(this);
308+
});
306309
}
307310

308311

309312
function SelectPrinterNone( sVendor )
310313
{
311314
$("input[vendor='"+sVendor+"']").prop("checked", false);
315+
$("input[vendor='"+sVendor+"']").each(function() {
316+
CheckBoxOnclick(this);
317+
});
312318
}
313319

314320
function OnExitFilter() {

0 commit comments

Comments
 (0)
Please sign in to comment.