[ticket/11984] Do not resize textarea on touch devices

PHPBB3-11984
This commit is contained in:
Vjacheslav Trushkin 2013-10-31 10:29:46 +02:00
parent 796e22d675
commit 739f1a3bdd

View file

@ -15,6 +15,7 @@ var dark = $('#darkenwrapper');
var loadingIndicator = $('#loading_indicator');
var phpbbAlertTimer = null;
var isTouch = (window && typeof window.ontouchstart !== 'undefined');
/**
* Display a loading screen
@ -623,8 +624,9 @@ phpbb.resizeTextArea = function(items, options) {
resetCallback: function(item) { }
};
if (arguments.length > 1)
{
if (isTouch) return;
if (arguments.length > 1) {
configuration = $.extend(configuration, options);
}