mirror of
https://gitee.com/dcren/initializr.git
synced 2025-05-05 21:28:03 +08:00
Deselect incompatible deps when changing Boot version
This commit removes the dependency tag from the list of all dependencies not supported by the selected Boot version. Previously, the dependency input checkbox was unchecked, but the green tag was still present. Instead of hiding incompatible dependencies in the full list, the choices are now marked as "disabled"; it is impossible to select those checkboxes and the cursor displays a "not-allowed" icon when hovering the dependency. Closes gh-109 Closes gh-286
This commit is contained in:
parent
6ab9b5573e
commit
4d78a62a65
@ -126,10 +126,13 @@ $(function () {
|
||||
var versions = new Versions();
|
||||
$("#dependencies div.checkbox").each(function (idx, item) {
|
||||
if ($(item).attr('data-range') === 'null' || versions.matchRange($(item).attr('data-range'))(versionRange)) {
|
||||
$(item).show();
|
||||
$("input", item).removeAttr("disabled");
|
||||
$(item).removeClass("disabled");
|
||||
} else {
|
||||
$(item).hide();
|
||||
$("input", item).prop('checked', false);
|
||||
$(item).addClass("disabled");
|
||||
$("input", item).attr("disabled", true);
|
||||
removeTag($("input", item).val());
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user