mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
use UI language as a first guess for the preferred spam language.
(maybe we should add another option for that)
This commit is contained in:
parent
91cc1f4182
commit
e17da0ebb3
@ -222,6 +222,9 @@ var TwisterOptions = function()
|
||||
$('#language').val( this.getOption('locLang', 'auto') );
|
||||
$('#language').on('change', function() {
|
||||
$.Options.setOption('locLang', $(this).val());
|
||||
if($(this).val() != 'auto') {
|
||||
twisterRpc("setpreferredspamlang", [$(this).val()]);
|
||||
}
|
||||
location.reload();
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user