aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/assets
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-04-10 09:08:25 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-04-12 16:46:55 +0300
commitcbb9f084fce0fd42ed1481233f417c79e8a0abfa (patch)
tree1985525cc61f22ee5657e1e7473adcdf637cde67 /phpBB/assets
parent67f0e19128415210f0ece4a8cd3df12e4b35eaf6 (diff)
downloadforums-cbb9f084fce0fd42ed1481233f417c79e8a0abfa.tar
forums-cbb9f084fce0fd42ed1481233f417c79e8a0abfa.tar.gz
forums-cbb9f084fce0fd42ed1481233f417c79e8a0abfa.tar.bz2
forums-cbb9f084fce0fd42ed1481233f417c79e8a0abfa.tar.xz
forums-cbb9f084fce0fd42ed1481233f417c79e8a0abfa.zip
[ticket/10741] Fix for browser-specific resizing of textarea
Disable browser-specific resizing only after textarea has been resized Enable browser-specific resizing after script resizing has been reset PHPBB3-10741
Diffstat (limited to 'phpBB/assets')
-rw-r--r--phpBB/assets/javascript/core.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 6fe71d141a..827ed2e34a 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -600,7 +600,7 @@ phpbb.resizeTextArea = function(items) {
var $item = $(item);
if ($item.hasClass('auto-resized'))
{
- $(item).css('height', '').removeClass('auto-resized');
+ $(item).css({height: '', resize: ''}).removeClass('auto-resized');
configuration.resetCallback.call(item, $item);
}
};
@@ -609,7 +609,7 @@ phpbb.resizeTextArea = function(items) {
{
function setHeight(height)
{
- $item.css('height', height + 'px').addClass('auto-resized');
+ $item.css({height: height + 'px', resize: 'none'}).addClass('auto-resized');
configuration.resizeCallback.call(item, $item);
}
@@ -640,7 +640,7 @@ phpbb.resizeTextArea = function(items) {
$(this).each(function() {
autoResize(this);
});
- }).css('resize', 'none').change();
+ }).change();
$(window).resize(function() {
items.each(function() {