js i18n: forced-anon.js
This commit is contained in:
parent
bf4eca82b6
commit
223624892a
@ -56,17 +56,17 @@ $(document).ready(function() {
|
|||||||
forced_anon = localStorage['forcedanon'] ? true : false;
|
forced_anon = localStorage['forcedanon'] ? true : false;
|
||||||
|
|
||||||
$('hr:first').before('<div id="forced-anon" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>');
|
$('hr:first').before('<div id="forced-anon" style="text-align:right"><a class="unimportant" href="javascript:void(0)">-</a></div>');
|
||||||
$('div#forced-anon a').text('Forced anonymity (' + (forced_anon ? 'enabled' : 'disabled') + ')');
|
$('div#forced-anon a').text(_('Forced anonymity')+' (' + (forced_anon ? _('enabled') : _('disabled')) + ')');
|
||||||
|
|
||||||
$('div#forced-anon a').click(function() {
|
$('div#forced-anon a').click(function() {
|
||||||
forced_anon = !forced_anon;
|
forced_anon = !forced_anon;
|
||||||
|
|
||||||
if(forced_anon) {
|
if(forced_anon) {
|
||||||
$('div#forced-anon a').text('Forced anonymity (enabled)');
|
$('div#forced-anon a').text(_('Forced anonymity')+' ('+_('enabled')+')');
|
||||||
localStorage.forcedanon = true;
|
localStorage.forcedanon = true;
|
||||||
enable_fa();
|
enable_fa();
|
||||||
} else {
|
} else {
|
||||||
$('div#forced-anon a').text('Forced anonymity (disabled)');
|
$('div#forced-anon a').text(_('Forced anonymity')+' ('+_('disabled')+')');
|
||||||
delete localStorage.forcedanon;
|
delete localStorage.forcedanon;
|
||||||
disable_fa();
|
disable_fa();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user