1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fix for reports if not-pro

This commit is contained in:
Hillel Coren 2017-04-23 12:13:06 +03:00
parent 9138c02c31
commit 0521c5e74b

View File

@ -75,7 +75,7 @@
</script> </script>
{!! Former::open()->rules(['start_date' => 'required', 'end_date' => 'required']) !!} {!! Former::open()->addClass('report-form')->rules(['start_date' => 'required', 'end_date' => 'required']) !!}
<div style="display:none"> <div style="display:none">
{!! Former::text('action') !!} {!! Former::text('action') !!}
@ -149,7 +149,7 @@
@if (!Auth::user()->hasFeature(FEATURE_REPORTS)) @if (!Auth::user()->hasFeature(FEATURE_REPORTS))
<script> <script>
$(function() { $(function() {
$('form.warn-on-exit').find('input, button').prop('disabled', true); $('form.report-form').find('input, button').prop('disabled', true);
}); });
</script> </script>
@endif @endif