From 21a6225b9b8eb8f5df0575cb0d1dbf0310fc2ffa Mon Sep 17 00:00:00 2001 From: Alex Eng Date: Wed, 3 Jun 2015 11:19:44 +1000 Subject: [PATCH 1/2] bind cut and paste event for autocomplete input field: https://bugzilla.redhat.com/show_bug.cgi?id=1224030 --- docs/release-notes.md | 2 ++ .../src/main/webapp/resources/zanata/autocomplete.xhtml | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 80963a0027..1b38e510e1 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -56,6 +56,8 @@ This is dependent on database size and the system administrator should consider * [1147304](https://bugzilla.redhat.com/show_bug.cgi?id=1147304) - Project search fails on special characters * [1123186](https://bugzilla.redhat.com/show_bug.cgi?id=1123186) - Project search fails for multiple word project names * [1112498](https://bugzilla.redhat.com/show_bug.cgi?id=1112498) - Unable to remove self as maintainer +* [1224030](https://bugzilla.redhat.com/show_bug.cgi?id=1224030) - Search form does not trigger search if paste text + -----------------------
New Features
diff --git a/zanata-war/src/main/webapp/resources/zanata/autocomplete.xhtml b/zanata-war/src/main/webapp/resources/zanata/autocomplete.xhtml index 01b431a8b6..d8c1763909 100644 --- a/zanata-war/src/main/webapp/resources/zanata/autocomplete.xhtml +++ b/zanata-war/src/main/webapp/resources/zanata/autocomplete.xhtml @@ -94,12 +94,19 @@ } jQuery(function() { - jQuery('#' + '#{cc.attrs.id}-autocomplete__input').typing({ + var inputField = jQuery('#' + '#{cc.attrs.id}-autocomplete__input'); + inputField.typing({ stop: function(event, elem) { onValueChange(elem, event, #{cc.attrs.id}RenderResult, #{cc.attrs.id}ClearResults); }, delay: 400 }); + + inputField.bind('paste cut', function(event) { + setTimeout(function () { + onValueChange(inputField, event, #{cc.attrs.id}RenderResult, #{cc.attrs.id}ClearResults); + }, 400); + }); }); From 0884a60592822fa72c2e1c725e59929fccc28366 Mon Sep 17 00:00:00 2001 From: Alex Eng Date: Wed, 3 Jun 2015 13:49:56 +1000 Subject: [PATCH 2/2] Include reindex instruction for HProject --- docs/release-notes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 80963a0027..f5eb06bc52 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -27,13 +27,15 @@ Example usage in html file: ` + + +* The Zanata administrator will also need to reindex HProject table via the Administration menu. See [Manage search](user-guide/admin/manage-search) for more information.
Bug fixes