1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

[ticket/13713] Fix multiple dropdown issues

PHPBB3-13713
This commit is contained in:
lavigor
2018-08-14 02:47:16 +03:00
committed by Marc Alexander
parent 99e93a5a04
commit f64dbf5303
3 changed files with 6 additions and 6 deletions

View File

@@ -443,7 +443,7 @@ function getCaretPosition(txtarea) {
}
let cachedKeyword = getCachedKeyword(query),
cachedNamesForQuery = (cachedKeyword) ? cachedNames[cachedKeyword] : null;
cachedNamesForQuery = (cachedKeyword != null) ? cachedNames[cachedKeyword] : null;
/*
* Use cached values when we can:
@@ -465,7 +465,7 @@ function getCaretPosition(txtarea) {
$.getJSON(mentionURL, params, function(data) {
cachedNames[query] = data.names;
cachedAll[query] = data.all;
callback(data);
callback(data.names);
}).always(function() {
queryInProgress = null;
});