diff --git a/modules/jquery/jquery.multiSuggest.js b/modules/jquery/jquery.multiSuggest.js index 3d5bafbba3..3e69a54aa0 100644 --- a/modules/jquery/jquery.multiSuggest.js +++ b/modules/jquery/jquery.multiSuggest.js @@ -125,20 +125,19 @@ } // Opens the MultiSuggest dropdown. function open() { - if ( !visible ) { - // Call input method if cached value is stale - if ( - $input.val() !== '' && - $input.val() !== currentInput - ) { - onInput(); - } else { - // Show if there are suggestions. - if ( $multiSuggest.children().length > 0 ) { - visible = true; - $multiSuggest.show(); - } - } + // Call onInput if cached value is stale + if ( + $input.val() !== '' && + $input.val() !== currentInput + ) { + onInput(); + } + if ( + !visible && + $multiSuggest.children().length > 0 + ) { + $multiSuggest.show(); + visible = true; } } // Closes the dropdown. diff --git a/modules/ve/ui/inspectors/ve.ui.LinkInspector.js b/modules/ve/ui/inspectors/ve.ui.LinkInspector.js index 72a8a5b7e9..f394874d7c 100644 --- a/modules/ve/ui/inspectors/ve.ui.LinkInspector.js +++ b/modules/ve/ui/inspectors/ve.ui.LinkInspector.js @@ -337,7 +337,12 @@ ve.ui.LinkInspector.prototype.initMultiSuggest = function () { 'results': suggestionCache[cKey] } ); } else { - // No cache, build fresh api request. + // Load immediate suggestions + callback( { + 'query': query, + 'results': [] + } ); + // Build from fresh api request. api.get( { 'action': 'opensearch', 'search': query