Added a comment to clearify *why* this works

pull/1407/head
mluto 2013-01-25 20:38:24 +01:00
parent 763864539f
commit 046fac9fa9
1 changed files with 3 additions and 0 deletions

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);