Commit f43c3142 authored by Michal Čihař's avatar Michal Čihař

Consistent look for toolbar

parent 98d01725
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
{% endif %} {% endif %}
<tr> <tr>
<td></td> <td></td>
<td><a href="#" id="copy-text">{% trans "Copy" %}</td> <td class="toolbar"><a href="#" id="copy-text">{% trans "Copy" %}</td>
</tr> </tr>
<tr> <tr>
<th>{% if unit.is_plural %}{% trans "Translations" %}{% else %}{% trans "Translation" %}{% endif %}</th> <th>{% if unit.is_plural %}{% trans "Translations" %}{% else %}{% trans "Translation" %}{% endif %}</th>
......
...@@ -80,10 +80,15 @@ textarea.translation { ...@@ -80,10 +80,15 @@ textarea.translation {
td.suggestions table { td.suggestions table {
width: 100% width: 100%
} }
#copy-text, .button-prev, .button-next, .button-first, .button-end, #translate-apertium { .button-prev, .button-next, .button-first, .button-end {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
td.toolbar a {
height: 20px;
font-size: 10px;
font-weight: normal;
}
.helptext { .helptext {
font-size: smaller; font-size: smaller;
} }
......
...@@ -15,7 +15,7 @@ $(function() { ...@@ -15,7 +15,7 @@ $(function() {
$('.button-prev').button({text: false, icons: { primary: "ui-icon-seek-prev" }}); $('.button-prev').button({text: false, icons: { primary: "ui-icon-seek-prev" }});
$('.button-end').button({text: false, icons: { primary: "ui-icon-seek-end" }}); $('.button-end').button({text: false, icons: { primary: "ui-icon-seek-end" }});
$('textarea.translation').change(text_change).keypress(text_change).autogrow().focus(); $('textarea.translation').change(text_change).keypress(text_change).autogrow().focus();
$('#copy-text').button({text: false, icons: { primary: "ui-icon-arrowthick-1-s" }}).click(function f() { $('#copy-text').button({text: true, icons: { primary: "ui-icon-arrow-1-s" }}).click(function f() {
$.get("/js/get/" + $('#id_checksum').attr('value') + '/', function(data) { $.get("/js/get/" + $('#id_checksum').attr('value') + '/', function(data) {
$('#id_target').text(data); $('#id_target').text(data);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment