[frio] Fix JS error in compose private message page
This commit is contained in:
parent
810c108297
commit
ea09a51dff
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
||||||
$('#mail-conversation').perfectScrollbar();
|
$('#mail-conversation').perfectScrollbar();
|
||||||
$('#message-preview').perfectScrollbar();
|
$('#message-preview').perfectScrollbar();
|
||||||
// Scroll to the bottom of the mail conversation.
|
// Scroll to the bottom of the mail conversation.
|
||||||
$('#mail-conversation').scrollTop($('#mail-conversation')[0].scrollHeight);
|
var $el = $('#mail-conversation');
|
||||||
|
if ($el.length) {
|
||||||
|
$el.scrollTop($el.get(0).scrollHeight);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue