diff options
| author | Teddy Wing | 2011-04-29 23:12:39 +0200 |
|---|---|---|
| committer | Teddy Wing | 2011-04-29 23:12:39 +0200 |
| commit | 632892b577200697dbb4af4acc4dc35ca6818fcd (patch) | |
| tree | bc3b9ce844b699b1b1a4bfe75e7c8619029c95f0 /Resources/search.js | |
| parent | ed8c24d59c8f036904608b94d01241f7ca5985f3 (diff) | |
| download | RocheTwit-632892b577200697dbb4af4acc4dc35ca6818fcd.tar.bz2 | |
Cleaned up, added some comments, changed strings to French
Diffstat (limited to 'Resources/search.js')
| -rw-r--r-- | Resources/search.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Resources/search.js b/Resources/search.js index de65eeb..f83d454 100644 --- a/Resources/search.js +++ b/Resources/search.js @@ -4,13 +4,13 @@ var win = Titanium.UI.currentWindow; // Create a search input bar var search_input = Titanium.UI.createSearchBar({ - hintText: 'Enter a search query', // let user know what to type + hintText: 'Rechercher sur Twitter', // let user know what to type height: 43, top: 0 }); var result_table = Titanium.UI.createTableView({ - top: 43 + top: 43 // Make sure the tableview is underneath our search bar }); var row_data = []; // an array to store our result rows in // (this gets fed into the result_table) @@ -90,6 +90,7 @@ var TSearch = { }; +// Event listener on Search button click search_input.addEventListener('return', function(e) { TSearch.s(e.value); |
