From: Robert Stojnić Date: Mon, 4 May 2009 23:33:07 +0000 (+0000) Subject: Addendum for r50205, also explicitly cancel any pending fetches just to be sure. X-Git-Tag: 1.31.0-rc.0~41877 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=3f516e69f1001a52a1a50f4e9797157f022f65f2;p=lhc%2Fweb%2Fwiklou.git Addendum for r50205, also explicitly cancel any pending fetches just to be sure. --- diff --git a/skins/common/mwsuggest.js b/skins/common/mwsuggest.js index 503c739246..eeb8412c6a 100644 --- a/skins/common/mwsuggest.js +++ b/skins/common/mwsuggest.js @@ -628,7 +628,12 @@ function os_eventBlur(e){ return; // not our event if(!os_mouse_pressed){ os_hideResults(r); + // force canvas to stay hidden r.stayHidden = true + // cancel any pending fetches + if(os_timer != null && os_timer.id != null) + clearTimeout(os_timer.id); + os_timer = null } }