Added a comment to clearify *why* this works

This commit is contained in:
mluto 2013-01-25 20:38:24 +01:00
parent 763864539f
commit 046fac9fa9

View file

@ -79,6 +79,9 @@ var padeditor = (function()
html10n.bind('localized', function() {
$("#languagemenu").val(html10n.getLanguage());
// translate the value of 'unnamed' and 'Enter your name' textboxes in the userlist
// this does not interfere with html10n's normal value-setting because html10n just ingores <input>s
// also, a value which has been set by the user will be not overwritten since a user-edited <input>
// does *not* have the editempty-class
$('input[data-l10n-id]').each(function(key, input)
{
input = $(input);