mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-28 12:30:42 +02:00
[ticket/11984] Do not resize textarea on touch devices
PHPBB3-11984
This commit is contained in:
@@ -15,6 +15,7 @@ var dark = $('#darkenwrapper');
|
|||||||
var loadingIndicator = $('#loading_indicator');
|
var loadingIndicator = $('#loading_indicator');
|
||||||
var phpbbAlertTimer = null;
|
var phpbbAlertTimer = null;
|
||||||
|
|
||||||
|
var isTouch = (window && typeof window.ontouchstart !== 'undefined');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a loading screen
|
* Display a loading screen
|
||||||
@@ -623,8 +624,9 @@ phpbb.resizeTextArea = function(items, options) {
|
|||||||
resetCallback: function(item) { }
|
resetCallback: function(item) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
if (arguments.length > 1)
|
if (isTouch) return;
|
||||||
{
|
|
||||||
|
if (arguments.length > 1) {
|
||||||
configuration = $.extend(configuration, options);
|
configuration = $.extend(configuration, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user