Commit 71885860e35f30648a9b503d14bfbb2fe4c1cab5

Authored by Leonardo Merlin
2 parents 68620f5a 36fe0ad4

Merge branch 'fix-search' into 'master'

Fix #60 - Search input

See merge request !14
Showing 2 changed files with 13 additions and 2 deletions   Show diff stats
@@ -131,8 +131,15 @@ $.getJSON(noosferoAPI) @@ -131,8 +131,15 @@ $.getJSON(noosferoAPI)
131 131
132 $( "#search-input" ).autocomplete({ 132 $( "#search-input" ).autocomplete({
133 source: availableTags, 133 source: availableTags,
134 - select: function( event, ui ) { display_proposal(ui.item['value' ].replace('#','')); },  
135 - appendTo: '#search-input-container' 134 + select: function( event, ui ) {
  135 + updateHash(ui.item.value);
  136 + return false;
  137 + },
  138 + appendTo: '#search-input-container',
  139 + messages: {
  140 + noResults: '',
  141 + results: function() {}
  142 + }
136 }); 143 });
137 144
138 145
sass/style.scss
@@ -127,4 +127,8 @@ form { @@ -127,4 +127,8 @@ form {
127 color: #333; 127 color: #333;
128 background-color: #fff; 128 background-color: #fff;
129 border-color: #ccc; 129 border-color: #ccc;
  130 +}
  131 +
  132 +.ui-helper-hidden-accessible{
  133 + display: none;
130 } 134 }
131 \ No newline at end of file 135 \ No newline at end of file