diff --git a/resources/views/expenses/edit.blade.php b/resources/views/expenses/edit.blade.php
index 26a8ac3cdd6d..1c588b5ce920 100644
--- a/resources/views/expenses/edit.blade.php
+++ b/resources/views/expenses/edit.blade.php
@@ -193,8 +193,8 @@
- {!! Former::textarea('public_notes')->rows($isRecurring ? 10 : 6) !!}
- {!! Former::textarea('private_notes')->rows($isRecurring ? 10 : 6) !!}
+ {!! Former::textarea('public_notes')->rows($account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
+ {!! Former::textarea('private_notes')->rows($account->hasFeature(FEATURE_DOCUMENTS) ? 6 : 10) !!}
@if (! $isRecurring && $account->hasFeature(FEATURE_DOCUMENTS))
@@ -390,12 +390,7 @@
$('.end_date .input-group-addon').click(function() {
toggleDatePicker('end_date');
});
- @elseif (Auth::user()->account->hasFeature(FEATURE_DOCUMENTS))
- $('.main-form').submit(function(){
- if($('#document-upload .fallback input').val())$(this).attr('enctype', 'multipart/form-data')
- else $(this).removeAttr('enctype')
- })
-
+ @else
$('#payment_type_id').combobox();
$('#mark_paid').click(function(event) {
if ($('#mark_paid').is(':checked')) {
@@ -417,8 +412,14 @@
toggleDatePicker('payment_date');
});
- @include('partials.dropzone', ['documentSource' => 'model.documents()'])
+ @if (Auth::user()->account->hasFeature(FEATURE_DOCUMENTS))
+ $('.main-form').submit(function(){
+ if($('#document-upload .fallback input').val())$(this).attr('enctype', 'multipart/form-data')
+ else $(this).removeAttr('enctype')
+ })
+ @include('partials.dropzone', ['documentSource' => 'model.documents()'])
+ @endif
@endif
});