Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(install): wrong value used for checkboxes refresh (#8457)
Browse files Browse the repository at this point in the history
  • Loading branch information
adr-mo committed Mar 25, 2020
1 parent fed277d commit 4340fe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/install/steps/templates/step8.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
if (modules && modules.length > 0) {
modules.forEach(function(module) {
if (module.install) {
jQuery('label[for="module_' + module.name + '"]').addClass('md-label-green');
jQuery("input[type=checkbox]#module_" + module.name)
jQuery('label[for="module_' + module.module + '"]').addClass('md-label-green');
jQuery("input[type=checkbox]#module_" + module.module)
.attr('disabled', 'disabled')
.prop('checked', 'checked');
}
Expand All @@ -143,8 +143,8 @@
if (widgets && widgets.length > 0) {
widgets.forEach(function(widget) {
if (widget.install) {
jQuery('label[for="widget_' + widget.name + '"]').addClass('md-label-green');
jQuery("input[type=checkbox]#widget_" + widget.name)
jQuery('label[for="widget_' + widget.widget + '"]').addClass('md-label-green');
jQuery("input[type=checkbox]#widget_" + widget.widget)
.attr('disabled', 'disabled')
.prop('checked', 'checked');
}
Expand Down

0 comments on commit 4340fe6

Please sign in to comment.