We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055fdd5 commit ef4b5d4Copy full SHA for ef4b5d4
1 file changed
ui/scripts/ui/dialog.js
@@ -225,8 +225,11 @@
225
if ($dependsOn.is('[type=checkbox]')) {
226
227
var isReverse = false;
228
- if (args.form.fields[dependsOn])
+ if (args.form.fields[dependsOn]) {
229
isReverse = args.form.fields[dependsOn].isReverse;
230
+ isChecked = args.form.fields[dependsOn].isChecked;
231
+ }
232
+
233
234
// Checkbox
235
$dependsOn.bind('click', function(event) {
@@ -260,6 +263,10 @@
260
263
// Show fields by default if it is reverse checkbox
261
264
if (isReverse) {
262
265
$dependsOn.click();
266
267
+ if (isChecked) {
268
+ $dependsOn.attr('checked', true);
269
270
}
271
272
0 commit comments