mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Remove inline javascript
This commit is contained in:
parent
25cba65c6e
commit
f2d34b2c03
|
@ -468,18 +468,6 @@
|
|||
</option>
|
||||
@endforeach
|
||||
</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>
|
||||
@endif
|
||||
@if (request()->routeIs('reports/custom'))
|
||||
|
@ -556,6 +544,14 @@
|
|||
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) {
|
||||
var content = $(event.relatedTarget).data('content');
|
||||
var title = $(event.relatedTarget).data('title');
|
||||
|
|
Loading…
Reference in a new issue