From: David ‘Bombe’ Roden Date: Thu, 21 Oct 2010 08:44:49 +0000 (+0200) Subject: Add name of input field to JavaScript function. X-Git-Tag: 0.1-RC1~138 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=6a34e2d60715d7c982a6727a22d10fcd63cce53f Add name of input field to JavaScript function. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 66f12af..ab16ba3 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1,8 +1,8 @@ /* Sone JavaScript functions. */ -function registerInputTextareaSwap(inputSelector, defaultText) { +function registerInputTextareaSwap(inputSelector, defaultText, inputFieldName) { $(inputSelector).each(function() { - textarea = $("").blur(function() { + textarea = $("").blur(function() { if ($(this).val() == "") { $(this).hide(); $(this).data("inputField").show().removeAttr("disabled"); diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 0f400a9..6cd2cbc 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -5,7 +5,7 @@ diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 122a487..5dcda5a 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -3,7 +3,7 @@ diff --git a/src/main/resources/templates/knownSones.html b/src/main/resources/templates/knownSones.html index eeda403..3f55a58 100644 --- a/src/main/resources/templates/knownSones.html +++ b/src/main/resources/templates/knownSones.html @@ -2,7 +2,7 @@