Browse Source

use UI language as a first guess for the preferred spam language.

(maybe we should add another option for that)
master
Miguel Freitas 10 years ago
parent
commit
e17da0ebb3
  1. 3
      js/options.js

3
js/options.js

@ -222,6 +222,9 @@ var TwisterOptions = function() @@ -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…
Cancel
Save