Skip to content

Commit

Permalink
Last style changes for diccionari multilingüe
Browse files Browse the repository at this point in the history
  • Loading branch information
paugnu committed Mar 6, 2016
1 parent b4610cb commit e0e885c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/css/main.min.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion static/js/multilingue.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ jQuery('#source').typeahead(
async: true,
source: get_autocomplete_words
}
);
).on('typeahead:selected', function(evt, item) {
jQuery('#_action_consulta').trigger('click');
});

function get_autocomplete_words (query, processSync, processAsync) {
var lang = jQuery('#lang option:selected').val();
Expand Down
4 changes: 3 additions & 1 deletion templates/ajax/multilingue-paraula.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
</ul>

{% if response.result.image %}
<img src="https://www.softcatala.org/diccionari-multilingue/api/images/{{ response.result.image }}" />
<div class="diccionari_image">
<img alt="Imatge relacionada amb {{ response.paraula }}" src="https://www.softcatala.org/diccionari-multilingue/api/images/{{ response.result.image }}" />
</div>
{% endif %}

<footer class="contingut-footer">
Expand Down

0 comments on commit e0e885c

Please sign in to comment.