Anonymize on stubs.

This commit is contained in:
noface 2012-12-13 17:39:12 +01:00
parent 9f18c25805
commit e326d92332
3 changed files with 4 additions and 2 deletions

View File

@ -1204,7 +1204,7 @@
}); });
a = stub.firstChild; a = stub.firstChild;
$.on(a, 'click', ReplyHiding.toggle); $.on(a, 'click', ReplyHiding.toggle);
$.add(a, $.tn($('.desktop > .nameBlock', el).textContent)); $.add(a, $.tn(Conf['Anonymize'] ? 'Anonymize' : $('.desktop > .nameBlock', el).textContent));
if (Conf['Menu']) { if (Conf['Menu']) {
menuButton = Menu.a.cloneNode(true); menuButton = Menu.a.cloneNode(true);
$.on(menuButton, 'click', Menu.toggle); $.on(menuButton, 'click', Menu.toggle);

View File

@ -1,4 +1,6 @@
master master
- noface
Fix Anonymize not working on stubs.
- Mayhem - Mayhem
Fix selection quoting on Opera. Fix selection quoting on Opera.
Fix history bug with Persistent QR enabled on Chrome. Fix history bug with Persistent QR enabled on Chrome.

View File

@ -954,7 +954,7 @@ ReplyHiding =
innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>' innerHTML: '<a href="javascript:;"><span>[ + ]</span> </a>'
a = stub.firstChild a = stub.firstChild
$.on a, 'click', ReplyHiding.toggle $.on a, 'click', ReplyHiding.toggle
$.add a, $.tn $('.desktop > .nameBlock', el).textContent $.add a, $.tn if Conf['Anonymize'] then 'Anonymize' else $('.desktop > .nameBlock', el).textContent
if Conf['Menu'] if Conf['Menu']
menuButton = Menu.a.cloneNode true menuButton = Menu.a.cloneNode true
$.on menuButton, 'click', Menu.toggle $.on menuButton, 'click', Menu.toggle