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:
Michael Vogel 2018-08-04 23:09:56 +02:00 committed by GitHub
commit 793a4bf803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -49,5 +49,10 @@
} }
} }
function addeditortext(data) {
var currentText = $("#prvmail-text").val();
$("#prvmail-text").val(currentText + data);
}
</script> </script>

View file

@ -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>