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:
Miguel Freitas 2015-04-19 14:01:41 -03:00
parent 91cc1f4182
commit e17da0ebb3

View File

@ -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();
})
}