Skip to main content

Search and Top Navigation

#9969 closed bug (duplicate)

Opened April 08, 2014 06:10AM UTC

Closed April 08, 2014 12:24PM UTC

Last modified April 10, 2014 06:01AM UTC

ui.autocomplete unaccommodated a clear method expressly.

Reported by: Chiether Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:
Description

I want to be accommodated and need provide clear method.

_searchTimeout says ''only search if the value has changed'' in comment.

but remain in this.term when change with script, or without key-down.

sample: http://jsfiddle.net/TF3YZ/1/

Attachments (0)
Change History (6)

Changed April 08, 2014 06:26AM UTC by Chiether comment:1

_comment0: yes, we can clear that use this code. \ \ {{{ \ $("#autocomplete").val(''); \ $("#autocomplete").autocomplete('search', ''); \ }}} \ \ but 'search' methods be hardly a satisfactory settlement. Because it won't search and wasteful load and response. \ I think this one. \ {{{ \ $("#autocomplete").autocomplete('clear'); \ }}} \ 1396938737623180
  • deletion: dupe comment (sorry)*

Changed April 08, 2014 06:30AM UTC by Chiether comment:2

yes, we can clear that use this code.

$("#autocomplete").val("");
$("#autocomplete").autocomplete("search", "");

but search methods be hardly a satisfactory settlement. Because it won't search and wasteful load and response.

I preferred this one.

$("#autocomplete").autocomplete("clear");

Changed April 08, 2014 12:24PM UTC by scottgonzalez comment:3

resolution: → duplicate
status: newclosed

Duplicate of #7434.

Changed April 09, 2014 02:57AM UTC by Chiether comment:4

_comment0: Scott, thanks find kinda looks a like ticket. But I can't go along with #7434. \ \ 7434 says 'Selected Text Trigger Usability' and 'trigger _search when get focus back.' but this is 'Implement clear method', NOT TRIGGER. \ \ By the way... I try patched 7434 but its unresolved. \ \ 1. focus-in -> show all \ 2. input text-box a letter 'a' -> show filtered \ 3. focus-out and press clear button -> clear text-box \ 4. focus-in -> show all \ 5. input text-box a letter 'a' -> show all (NOT FILTERED!) \ \ Okay, I try coding and make pull request(but maybe it a little later, because busy work). \ \ and, This is positive continue and change to #7434 ? \ \ 1397012379910923

Replying to [comment:3 scott.gonzalez]:

Scott, thanks find kinda looks a like ticket. But I can't go along with #7434.

7434 says 'Selected Text Trigger Usability' and 'trigger _search when get focus back.' but this is 'Implement clear method', NOT TRIGGER.

By the way... I try patched 7434 but its unresolved.

1. focus-in -> show all

2. input text-box a letter 'a' -> show filtered

3. focus-out and press clear button -> clear text-box

4. focus-in -> show all

5. input text-box a letter 'a' -> show all (NOT FILTERED!)

Okay, I try coding and make pull request(but maybe it a little later, because busy work).

and, This is positive continue and change to #7434 ?

Changed April 09, 2014 12:32PM UTC by scottgonzalez comment:5

You don't actually care about a clear method. You care that the autocomplete searches when it should. If you insist these are separate issues, I can reclose as won't fix, because we won't add a clear method.

Changed April 10, 2014 06:01AM UTC by Chiether comment:6

_comment0: Replying to [comment:5 scott.gonzalez]: \ > You don't actually care about a clear method. \ > You care that the autocomplete searches when it should. \ \ I don't feel a need and see what make no case for redundantly searches, considering its a low frequency of operation. \ \ Scott, thanks your replying. *waves*1397110301412837

Replying to [comment:5 scott.gonzalez]:

You don't actually care about a clear method. You care that the autocomplete searches when it should.

I don't feel a need reopen and see what make no case for redundantly searches, considering its a low frequency of operation.

Scott, thanks your replying. *waves*