|
@@ -239,6 +239,14 @@
|
|
|
|
|
|
function init() {
|
|
function init() {
|
|
|
|
|
|
|
|
+ $(document)
|
|
|
|
+ .off('input.auto-grow', '[visit-moe] form textarea')
|
|
|
|
+ .on('input.auto-grow', '[visit-moe] form textarea', function() {
|
|
|
|
+ this.style.minHeight = "calc(1.5em + .5rem + 2px)";
|
|
|
|
+ this.style.height = "calc(1.5em + .5rem + 2px)";
|
|
|
|
+ this.style.height = (this.scrollHeight)+"px";
|
|
|
|
+ });
|
|
|
|
+
|
|
let parent = $('.segments-list');
|
|
let parent = $('.segments-list');
|
|
initRTEs(parent);
|
|
initRTEs(parent);
|
|
initSegmentMoes(parent);
|
|
initSegmentMoes(parent);
|