From 2c66b7e39c884e6de5d5df9ea93537c13c15ff1e Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Tue, 16 Feb 2016 12:36:23 +0100 Subject: [PATCH] Any click empties the mentions-suggestions --- js/qvitter.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/qvitter.js b/js/qvitter.js index e37e59f..f70782e 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -3249,6 +3249,18 @@ $('body').on('keyup', 'div.queet-box-syntax', function(e) { } }); + +/* · + · + · Any click empties the mentions-suggestions + · + · · · · · · · · · · · · · */ + +$(document).click(function() { + $('.mentions-suggestions').empty(); + }); + + /* · · · Store unposted queets in cache, if the user accidentally reloads the page or something