Merge pull request #4825 from devansh-webkul/ui-invoice-issue

Fixed UI bug at customer invoice page if multiple invoice exist for same order id #4823
This commit is contained in:
Glenn Hermans 2021-04-26 20:34:29 +02:00 committed by GitHub
commit 50be09e468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 34 deletions

View File

@ -10,37 +10,4 @@
@yield('page-detail-wrapper')
</div>
</div>
@endsection
@push('scripts')
<script>
$(document).ready(function() {
window.updateHeight = () => {
setTimeout(() => {
let sidebarHeight = $('.customer-sidebar').css('height');
let contentHeight = $('.account-layout').css('height');
sidebarHeight = parseInt(sidebarHeight.substring(0, sidebarHeight.length - 2));
contentHeight = parseInt(contentHeight.substring(0, contentHeight.length - 2));
let height = sidebarHeight > contentHeight ? sidebarHeight : contentHeight;
height = (height + 30)+ "px";
$('.account-content').css('height', height);
}, 0);
}
window.updateHeight();
$('input, select').change(() => {
window.updateHeight();
});
$('button').click(() => {
window.updateHeight();
});
$('.accordian-header').click(window.updateHeight);
});
</script>
@endpush
@endsection