View | Details | Raw Unified | Return to bug 31863
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc (-3 / +5 lines)
Lines 1020-1027 require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr Link Here
1020
                resizeTimer = null;
1020
                resizeTimer = null;
1021
1021
1022
                var pos = $('#editor .CodeMirror').offset();
1022
                var pos = $('#editor .CodeMirror').offset();
1023
                $('#editor .CodeMirror').height( $(window).height() - pos.top - 24 - $('#changelanguage').height() ); // 24 is hardcoded value but works well
1023
                if ( $('#changelanguage').length ) {
1024
1024
                    $('#editor .CodeMirror').height( $(window).height() - pos.top - 24 - $('#changelanguage').height() ); // 24 is hardcoded value but works well
1025
                } else {
1026
                    $('#editor .CodeMirror').height( $(window).height() - pos.top - 24 );
1027
                }
1025
                $('.modal-body').each( function() {
1028
                $('.modal-body').each( function() {
1026
                    $(this).height( $(window).height() * .8 - $(this).prevAll('.modal-header').height() );
1029
                    $(this).height( $(window).height() * .8 - $(this).prevAll('.modal-header').height() );
1027
                } );
1030
                } );
1028
- 

Return to bug 31863