Bug 877223

Summary: Add "clear" button to search field in workspace
Product: [Retired] Zanata Reporter: Hedda Peters <hpeters>
Component: Component-UIAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: pahuang, zanata-bugs
Target Milestone: ---   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 2.1-SNAPSHOT (20121129-1444) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 04:06:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hedda Peters 2012-11-16 00:46:31 UTC
Description of problem:

The simple search function in the editor ("Search Source or Target content") needs a "clear" function that will clear the last search and show all strings again.

Steps to Reproduce:
1. Open any document in workspace
2. Enter search term in search bar at the top, hit Enter
3. n number of results will show
4. In order to clear the search results and view all strings again...:
Actual results:
... you need to remove the search term from search bar and hit Enter again. That is at least one mouse click and two keystrokes. 

Expected results:
... you should be able to click a little "x" symbol (or similar) in the search bar. One mouse click.

Comment 1 Alex Eng 2012-11-26 04:00:26 UTC
Implemented clear button for search field.

See https://github.com/zanata/zanata/commit/49771cbc4071ecf1873bb70fdd243b5a5ecfe453

Comment 2 Patrick Huang 2012-11-26 04:42:50 UTC
clear icon clears the text in the input box but not triggering a page reload(i.e. from search result to full result)

Comment 4 Ding-Yi Chen 2012-11-30 04:47:46 UTC
VERIFIED with Zanata version 2.1-SNAPSHOT (20121129-1444)