Skip to content

Commit

Permalink
improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 19, 2012
1 parent 4b417a9 commit f51ee2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/views/search/_find_form.rhtml
Expand Up @@ -42,11 +42,12 @@
$('#search-messages').show();
}
});

} else {
} else if (search_term.length > 0 ) {
$('#msg').html("Please enter more than 2 characters");
$('#search-result-error').hide();
$('#search-messages').show();
} else {
$('#search-messages').hide();
}
}

Expand Down
6 changes: 5 additions & 1 deletion app/views/search/_find_results.rhtml
Expand Up @@ -16,7 +16,11 @@
<div class="ui-state-highlight ui-corner-all" style="margin-bottom: 5px;">
<p id="msg">
<span class="ui-icon ui-icon-info"/>
<%= _("No packages found matching your search") %>
<%= _("No packages found matching your search. ") %>
<% unless @search_unsupported %>
<br/>
<%= _("You could try to extend your search to unsupported packages or search for another base distribution (currently #{@baseproject}).") %>
<% end %>
</p>
</div>
</div>
Expand Down

0 comments on commit f51ee2e

Please sign in to comment.