From 94ac5054e4d257e177f058c1a8e1602f64673225 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 24 Aug 2017 15:35:49 +0200 Subject: [PATCH] js: fix suggestion list issues with slow, moving... ...or otherwise "unprecise" clicks. --- public/js/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/module.js b/public/js/module.js index ac9d05b5..e122be29 100644 --- a/public/js/module.js +++ b/public/js/module.js @@ -30,7 +30,7 @@ this.module.on('dblclick', '.director-suggest', this.suggestionDoubleClick); this.module.on('focus', '.director-suggest', this.enterSuggestionField); this.module.on('focusout', '.director-suggest', this.leaveSuggestionField); - this.module.on('click', '.director-suggestions li', this.clickSuggestion); + this.module.on('mousedown', '.director-suggestions li', this.clickSuggestion); this.module.on('dblclick', 'ul.tabs a', this.tabWantsFullscreen); this.module.on('change', 'form input.autosubmit, form select.autosubmit', this.setAutoSubmitted); this.module.icinga.logger.debug('Director module initialized');