$(this).hide();
inputField = $(this).data("inputField");
inputField.show().removeAttr("disabled").addClass("default");
- (function(inputField) {
- getTranslation(defaultText, function(translation) {
- inputField.val(translation);
- });
- })(inputField);
+ inputField.val(defaultText);
}
}).hide().data("inputField", $(this)).val($(this).val());
$(this).after(textarea);
});
if (inputField.val() == "") {
inputField.addClass("default");
- (function(inputField) {
- getTranslation(defaultText, function(translation) {
- inputField.val(translation);
- });
- })(inputField);
+ inputField.val(defaultText);
} else {
inputField.hide().attr("disabled", "disabled");
textarea.show();
<script language="javascript">
/* this initializes the status update input field. */
$(document).ready(function() {
- registerInputTextareaSwap("#sone #update-status .status-input", "WebInterface.DefaultText.StatusUpdate", "text", false, false);
+ getTranslation("WebInterface.DefaultText.StatusUpdate", function(text) {
+ registerInputTextareaSwap("#sone #update-status .status-input", text, "text", false, false);
+ })
});
</script>
<script language="javascript">
/* this initializes all reply input fields. */
$(document).ready(function() {
- registerInputTextareaSwap("#sone input.reply-input", "WebInterface.DefaultText.Reply", "text", false, false);
- addCommentLinks();
+ getTranslation("WebInterface.DefaultText.Reply", function(text) {
+ registerInputTextareaSwap("#sone input.reply-input", text, "text", false, false);
+ addCommentLinks();
+ })
});
</script>