From: David ‘Bombe’ Roden Date: Mon, 11 Apr 2011 12:03:59 +0000 (+0200) Subject: Store textarea in input field’s data. X-Git-Tag: beta-freefall-0.6.2-1~8^2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=949dfa183cd68322289f786ab7490a3810d9cffb;p=Sone.git Store textarea in input field’s data. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 056369c..8e6429c 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -33,7 +33,7 @@ function registerInputTextareaSwap(inputElement, defaultText, inputFieldName, op inputField.val(defaultText); } }).hide().data("inputField", $(this)).val($(this).val()); - $(this).after(textarea); + $(this).data("textarea", textarea).after(textarea); (function(inputField, textarea) { inputField.focus(function() { $(this).hide().attr("disabled", "disabled");