|
@@ -1028,6 +1028,21 @@
|
|
|
@endif
|
|
|
@endif
|
|
|
|
|
|
+ function autoGrow(_ta) {
|
|
|
+ _ta.style.minHeight = "46px";
|
|
|
+ _ta.style.height = "46px";
|
|
|
+ _ta.style.height = (_ta.scrollHeight + 10)+"px";
|
|
|
+ }
|
|
|
+ $(document)
|
|
|
+ .off('input.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
|
+ .on('input.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
|
+ autoGrow(this);
|
|
|
+ });
|
|
|
+ $(document)
|
|
|
+ .off('focus.auto-grow', '#ticketsApp textarea.auto-grow')
|
|
|
+ .on('focus.auto-grow', '#ticketsApp textarea.auto-grow', function() {
|
|
|
+ autoGrow(this);
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
}
|