Checks the status before activate the submit button on users bulk-checkin
This commit is contained in:
parent
e426846c23
commit
b1985a08c4
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue