admin can add comments to PIREPs #70

This commit is contained in:
Nabeel Shahzad
2018-01-03 15:27:56 -06:00
parent fce6c987fd
commit be6e5e8dec
20 changed files with 179 additions and 105 deletions

View File

@@ -0,0 +1,21 @@
@section('scripts')
<script>
$(document).ready(function () {
$(".select2").select2();
$(document).on('submit', 'form.add_rank', function (event) {
event.preventDefault();
$.pjax.submit(event, '#ranks_table_wrapper', {push: false});
});
$(document).on('submit', 'form.pjax_form', function (event) {
event.preventDefault();
$.pjax.submit(event, '#rank_subfleet_wrapper', {push: false});
});
$(document).on('pjax:complete', function () {
$(".select2").select2();
});
});
</script>
@endsection