mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Use 'on' (true) or null (false) for edit values of checkbox
This commit is contained in:
parent
540c7becf1
commit
68e002294f
@ -342,7 +342,7 @@
|
||||
var $input = $(this);
|
||||
|
||||
if ($input.is('[type=checkbox]')) {
|
||||
data[$input.attr('name')] = $input.is(':checked') ? true : false;
|
||||
data[$input.attr('name')] = $input.is(':checked') ? 'on' : null;
|
||||
} else {
|
||||
data[$input.attr('name')] = $input.val();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user