Merge pull request #1495 from basteyy/fix_1494

Fix #1494
This commit is contained in:
Diego Najar 2023-02-22 22:49:53 +01:00 committed by GitHub
commit 08f5522e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,12 +14,21 @@
className: className
};
$('input').each(function() {
$('input:not([type=checkbox])').each(function() {
var key = $(this).attr('name');
var value = $(this).val();
args[key] = value;
});
$('input[type=checkbox]').each(function() {
var key = $(this).attr('name');
var value = $(this).val();
if($(this).is(":checked")) {
args[key] = value;
}
});
$('select').each(function() {
var key = $(this).attr('name');
var value = $(this).val();