mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11984] Do not resize textarea on touch devices
PHPBB3-11984
This commit is contained in:
parent
796e22d675
commit
739f1a3bdd
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue