From 046fac9fa9c1a4cb2677d09ade9c181750f5a6d4 Mon Sep 17 00:00:00 2001 From: mluto Date: Fri, 25 Jan 2013 20:38:24 +0100 Subject: [PATCH] Added a comment to clearify *why* this works --- src/static/js/pad_editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index 553245ea..dd0cbbbb 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -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 s + // also, a value which has been set by the user will be not overwritten since a user-edited + // does *not* have the editempty-class $('input[data-l10n-id]').each(function(key, input) { input = $(input);