summaryrefslogtreecommitdiffstats
path: root/modules-available/translation/templates
diff options
context:
space:
mode:
authorSimon Rettberg2018-01-11 11:18:07 +0100
committerSimon Rettberg2018-01-11 11:18:07 +0100
commit807485b0b13ea8d585cca042bb9847f63a377d9c (patch)
treec41a4d86dc6298d41ced32fe7b5aab8801e8addc /modules-available/translation/templates
parent[translations] Guess using a VCS isn't enough? (diff)
downloadslx-admin-807485b0b13ea8d585cca042bb9847f63a377d9c.tar.gz
slx-admin-807485b0b13ea8d585cca042bb9847f63a377d9c.tar.xz
slx-admin-807485b0b13ea8d585cca042bb9847f63a377d9c.zip
[translations] Focus first untranslated tag
Diffstat (limited to 'modules-available/translation/templates')
-rw-r--r--modules-available/translation/templates/edit.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules-available/translation/templates/edit.html b/modules-available/translation/templates/edit.html
index 993768ca..7a41d9b4 100644
--- a/modules-available/translation/templates/edit.html
+++ b/modules-available/translation/templates/edit.html
@@ -35,10 +35,10 @@
<td class="col-sm-4" id="tagid-{{tagid}}">
{{^big}}
- <input type="text" class="form-control switchable" value="{{translation}}" ondblclick="slxMb(this)" name="lang#!#{{tag}}" placeholder="{{placeholder}}">
+ <input type="text" class="form-control switchable {{#missing}}txt-empty{{/missing}}" value="{{translation}}" ondblclick="slxMb(this)" name="lang#!#{{tag}}" placeholder="{{placeholder}}">
{{/big}}
{{#big}}
- <textarea rows="3" class="form-control" name="lang#!#{{tag}}" placeholder="{{placeholder}}">{{translation}}</textarea>
+ <textarea rows="3" class="form-control {{#missing}}txt-empty{{/missing}}" name="lang#!#{{tag}}" placeholder="{{placeholder}}">{{translation}}</textarea>
{{/big}}
</td>
@@ -121,4 +121,8 @@
old.replaceWith(ta);
}
+ document.addEventListener('DOMContentLoaded', function () {
+ $('.txt-empty').first().focus();
+ });
+
</script>