Remove inline javascript
This commit is contained in:
parent
25cba65c6e
commit
f2d34b2c03
1 changed files with 8 additions and 12 deletions
|
@ -468,18 +468,6 @@
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@push('js')
|
|
||||||
<script>
|
|
||||||
$('#saved_report_select')
|
|
||||||
.on('select2:select', function (event) {
|
|
||||||
window.location.href = '/reports/templates/' + event.params.data.id;
|
|
||||||
})
|
|
||||||
.on('select2:clearing', function (event) {
|
|
||||||
window.location.href = '{{ route('reports/custom') }}';
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endpush
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if (request()->routeIs('reports/custom'))
|
@if (request()->routeIs('reports/custom'))
|
||||||
|
@ -556,6 +544,14 @@
|
||||||
form.attr('action', '{{ route('report-templates.store') }}').submit();
|
form.attr('action', '{{ route('report-templates.store') }}').submit();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#saved_report_select')
|
||||||
|
.on('select2:select', function (event) {
|
||||||
|
window.location.href = '/reports/templates/' + event.params.data.id;
|
||||||
|
})
|
||||||
|
.on('select2:clearing', function (event) {
|
||||||
|
window.location.href = '{{ route('reports/custom') }}';
|
||||||
|
});
|
||||||
|
|
||||||
$('#dataConfirmModal').on('show.bs.modal', function (event) {
|
$('#dataConfirmModal').on('show.bs.modal', function (event) {
|
||||||
var content = $(event.relatedTarget).data('content');
|
var content = $(event.relatedTarget).data('content');
|
||||||
var title = $(event.relatedTarget).data('title');
|
var title = $(event.relatedTarget).data('title');
|
||||||
|
|
Loading…
Add table
Reference in a new issue