mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-09-03 09:42:36 +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').val( this.getOption('locLang', 'auto') );
|
||||||
$('#language').on('change', function() {
|
$('#language').on('change', function() {
|
||||||
$.Options.setOption('locLang', $(this).val());
|
$.Options.setOption('locLang', $(this).val());
|
||||||
|
if($(this).val() != 'auto') {
|
||||||
|
twisterRpc("setpreferredspamlang", [$(this).val()]);
|
||||||
|
}
|
||||||
location.reload();
|
location.reload();
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user