mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/12542] Properly check if textarea is undefined or null
PHPBB3-12542
This commit is contained in:
@@ -1241,7 +1241,7 @@ phpbb.applyCodeEditor = function(textarea) {
|
|||||||
* @param {object} textarea Textarea DOM object to apply editor to
|
* @param {object} textarea Textarea DOM object to apply editor to
|
||||||
*/
|
*/
|
||||||
phpbb.showDragNDrop = function(textarea) {
|
phpbb.showDragNDrop = function(textarea) {
|
||||||
if (textarea === 'undefined') {
|
if (textarea == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user