mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/13713] Fix variable definitions as requested by @hanakin
PHPBB3-13713
This commit is contained in:
@@ -397,7 +397,8 @@ function getCaretPosition(txtarea) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getMatchedNames(query, items, searchKey) {
|
function getMatchedNames(query, items, searchKey) {
|
||||||
let i, len;
|
let i;
|
||||||
|
let len;
|
||||||
let _results = [];
|
let _results = [];
|
||||||
for (i = 0, len = items.length; i < len; i++) {
|
for (i = 0, len = items.length; i < len; i++) {
|
||||||
let item = items[i];
|
let item = items[i];
|
||||||
@@ -468,7 +469,8 @@ function getCaretPosition(txtarea) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
sorter: function(query, items, searchKey) {
|
sorter: function(query, items, searchKey) {
|
||||||
let i, len;
|
let i;
|
||||||
|
let len;
|
||||||
let highestPriority = 0;
|
let highestPriority = 0;
|
||||||
let _unsorted = {u: {}, g: {}};
|
let _unsorted = {u: {}, g: {}};
|
||||||
let _exactMatch = [];
|
let _exactMatch = [];
|
||||||
@@ -543,7 +545,8 @@ function getCaretPosition(txtarea) {
|
|||||||
phpbb.mentions = new Mentions();
|
phpbb.mentions = new Mentions();
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
let doc, textarea;
|
let doc;
|
||||||
|
let textarea;
|
||||||
|
|
||||||
// find textarea, make sure browser supports necessary functions
|
// find textarea, make sure browser supports necessary functions
|
||||||
if (document.forms[form_name]) {
|
if (document.forms[form_name]) {
|
||||||
|
Reference in New Issue
Block a user