mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Checks the status before activate the submit button on users bulk-checkin
This commit is contained in:
parent
e426846c23
commit
b1985a08c4
|
@ -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