From 6a34e2d60715d7c982a6727a22d10fcd63cce53f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 21 Oct 2010 10:44:49 +0200 Subject: [PATCH] Add name of input field to JavaScript function. --- src/main/resources/static/javascript/sone.js | 4 ++-- src/main/resources/templates/include/head.html | 2 +- src/main/resources/templates/index.html | 2 +- src/main/resources/templates/knownSones.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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 @@ -- 2.7.4