2022-03-08 15:55:41 +01:00
|
|
|
$(document).ready(function() {
|
2024-04-04 14:37:20 +02:00
|
|
|
$("select.TranslationFileSelect").on('dblclick', function() {
|
|
|
|
$("#submit_add").trigger('click');
|
2022-03-08 15:55:41 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
var $checkbox = $("input#untranslated");
|
|
|
|
|
|
|
|
if($checkbox.length) {
|
|
|
|
|
2024-04-04 14:37:20 +02:00
|
|
|
$checkbox.on('click', function() {
|
2022-03-08 15:55:41 +01:00
|
|
|
if($(this).is(":checked")) {
|
|
|
|
$(".Inputfield.translated").fadeOut();
|
|
|
|
} else {
|
|
|
|
$(".Inputfield.translated").fadeIn();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
if($checkbox.is(":checked")) $(".Inputfield.translated").hide();
|
|
|
|
|
2024-04-04 14:37:20 +02:00
|
|
|
$(":input.translatable").on('blur', function() {
|
2022-03-08 15:55:41 +01:00
|
|
|
if($(this).val().length) {
|
|
|
|
$(this).closest('.Inputfield').removeClass('untranslated').addClass('translated');
|
|
|
|
} else {
|
|
|
|
$(this).closest('.Inputfield').removeClass('translated').addClass('untranslated');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2024-04-04 14:37:20 +02:00
|
|
|
});
|