Skip to content

Commit

Permalink
fix #1246 ウィジェット管理にてウィジェット内のラジオボタンが押せない問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
seto1 committed Feb 17, 2020
1 parent 775a165 commit 359f07f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/webroot/theme/admin-third/js/admin/widget_areas/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ $(function() {
}
}
});
$("#"+settingId+" label[for=WidgetStatus]").attr('for','WidgetStatus'+baseId);

$("#WidgetUpdateWidgetForm"+baseId).find('label').each(function(){
if ($(this).attr('for')){
$(this).attr('for', $(this).attr('for')+baseId);
}
});
}

/**
Expand Down
6 changes: 5 additions & 1 deletion lib/Baser/webroot/js/admin/widget_areas/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ $(function() {
}
}
});
$("#"+settingId+" label[for=WidgetStatus]").attr('for','WidgetStatus'+baseId);
$("#WidgetUpdateWidgetForm"+baseId).find('label').each(function(){
if ($(this).attr('for')){
$(this).attr('for', $(this).attr('for')+baseId);
}
});

}

Expand Down

0 comments on commit 359f07f

Please sign in to comment.