From c775582af2a94a67b49a6b8a1ffdd7e57e44d98f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Sep 2014 10:02:43 +0000 Subject: [PATCH] trigger blur on taglist in getValue() to not loose just typed content (previous fix stoped selection of suggestions by mouse) --- etemplate/js/et2_widget_taglist.js | 2 ++ phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_taglist.js b/etemplate/js/et2_widget_taglist.js index 2b1376c0be..e959389476 100644 --- a/etemplate/js/et2_widget_taglist.js +++ b/etemplate/js/et2_widget_taglist.js @@ -343,6 +343,8 @@ var et2_taglist = et2_selectbox.extend( getValue: function() { if(this.taglist == null) return null; + // trigger blur on taglist to not loose just typed value + jQuery(this.taglist.container).trigger('blur'); return this.taglist.getValue(); } }); diff --git a/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js b/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js index 0d12eb41a2..20a4b91c86 100644 --- a/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js +++ b/phpgwapi/js/jquery/magicsuggest/src/magicsuggest-1.3.1.js @@ -871,7 +871,7 @@ style: cfg.style }).width(w); ms.container.focus($.proxy(handlers._onFocus, this)); - ms.container.focusout($.proxy(handlers._onBlur, this)); + ms.container.blur($.proxy(handlers._onBlur, this)); ms.container.keydown($.proxy(handlers._onKeyDown, this)); ms.container.keyup($.proxy(handlers._onKeyUp, this));