aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/ajax.js
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-04-09 18:39:47 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-04-12 16:46:54 +0300
commit316efcbbbb72058bb9986be08af3d11173817386 (patch)
tree1cba565cbff42b48ad372cf3f3e266284ce133eb /phpBB/adm/style/ajax.js
parent88072fd6c2c3ec6cc6d2a880bd76a9c601fd0767 (diff)
downloadforums-316efcbbbb72058bb9986be08af3d11173817386.tar
forums-316efcbbbb72058bb9986be08af3d11173817386.tar.gz
forums-316efcbbbb72058bb9986be08af3d11173817386.tar.bz2
forums-316efcbbbb72058bb9986be08af3d11173817386.tar.xz
forums-316efcbbbb72058bb9986be08af3d11173817386.zip
[ticket/10741] Automatically resize textareas in prosilver and ACP
Automatically resize textareas in prosilver and ACP. PHPBB3-10741
Diffstat (limited to 'phpBB/adm/style/ajax.js')
-rw-r--r--phpBB/adm/style/ajax.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/adm/style/ajax.js b/phpBB/adm/style/ajax.js
index 8f7c210e00..8211bdd014 100644
--- a/phpBB/adm/style/ajax.js
+++ b/phpBB/adm/style/ajax.js
@@ -148,6 +148,12 @@ $('[data-ajax]').each(function() {
}
});
+/**
+* Automatically resize textarea
+*/
+$(document).ready(function() {
+ phpbb.resizeTextArea($('textarea'), {minHeight: 75});
+});
})(jQuery); // Avoid conflicts with other libraries