Fixed suggestion list height in the edit post modal and RHS

Этот коммит содержится в:
hmhealey
2015-12-02 09:56:40 -05:00
родитель 7308569375
Коммит 89731e9ef1
3 изменённых файлов: 17 добавлений и 5 удалений

Просмотреть файл

@@ -26,13 +26,13 @@
<script>
window.setup_channel_page({{ .Props }}, {{ .Team }}, {{ .Channel }}, {{ .User }});
$('body').tooltip( {selector: '[data-toggle=tooltip]'} );
var modals = $('.modal-body').not('.edit-modal-body');
if($(window).height() > 1200){
$('.modal-body').css('max-height', 1000);
modals.css('max-height', 1000);
} else {
modals.css('max-height', $(window).height() - 200);
}
else {
$('.modal-body').css('max-height', $(window).height() - 200);
}
$('.modal-body').perfectScrollbar();
modals.perfectScrollbar();
</script>
</body>
</html>