rosetta icon indicating copy to clipboard operation
rosetta copied to clipboard

Bug when required data is removed

Open aleksandervines opened this issue 8 years ago • 0 comments

If a user deletes input in one of the required fields, the next button is not greyed out.

I've fixed it in a branch on specify general information (I'll fix the other tabs and submit a PR when the profile-branch is ready). Or I can submit this individually if the other takes too long or isn't accepted.

I've solved it by instead of removing the button when exposing next, I add the class hideMe on the faux button. And of course add the class hideMe from next and remove hideMe from faux if required metadata is deleted.

    if (expose){
        $("#faux").addClass("hideMe");
        $(".jw-button-next").removeClass("hideMe");
    } else {
        $("#faux").removeClass("hideMe");
        $(".jw-button-next").addClass("hideMe");
    }

aleksandervines avatar Oct 12 '16 12:10 aleksandervines