Skip to content

Commit

Permalink
Merge pull request #4641 from vishalduggal/timob-15019-31X
Browse files Browse the repository at this point in the history
[TIMOB-15019] (3_1_X) Rebuild search results on cancel
  • Loading branch information
srahim committed Sep 3, 2013
2 parents 81b0436 + e855cd8 commit a89aafd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -1408,8 +1408,10 @@ - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar

- (void)searchBarCancelButtonClicked:(UISearchBar *) searchBar
{
// called when cancel button pressed
[searchBar setText:nil];
// called when cancel button pressed
[searchBar setText:nil];
[self setSearchString:nil];
[self updateSearchResultIndexes];
if (searchActivated) {
searchActivated = NO;
[tableview reloadData];
Expand Down

0 comments on commit a89aafd

Please sign in to comment.