Merge pull request #5554 from MrPetovan/bug/5544-fix-private-message-js-interactions
[frio/vier] Fix JS errors in compose private message page
This commit is contained in:
commit
793a4bf803
|
@ -49,5 +49,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
function addeditortext(data) {
|
||||
var currentText = $("#prvmail-text").val();
|
||||
$("#prvmail-text").val(currentText + data);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
$('#mail-conversation').perfectScrollbar();
|
||||
$('#message-preview').perfectScrollbar();
|
||||
// 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>
|
||||
|
|
Loading…
Reference in a new issue