Merge pull request #12167 from inietov/features/no_submit_until_status_selected

Fixed #11980 Submit button deactivated in Users' Bulk Checkin if no status selected
This commit is contained in:
snipe 2022-11-28 13:17:33 -08:00 committed by GitHub
commit 305df42f92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,3 +115,18 @@
</div>
@stop
@section('moar_scripts')
<script>
$(":submit").attr("disabled", "disabled");
$("[name='status_id']").on('select2:select', function (e) {
if (e.params.data.id != ""){
console.log(e.params.data.id);
$(":submit").removeAttr("disabled");
}
else {
$(":submit").attr("disabled", "disabled");
}
});
</script>
@stop