mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
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:
commit
305df42f92
|
@ -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
|
Loading…
Reference in a new issue