From 0c70b98fbbeb7bc06496a8feab357919a7661d4b Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 25 Oct 2011 18:36:42 +0100 Subject: [PATCH] search labels text --- itf/static/js/register.js | 2 +- itf/static/js/search.js | 15 +++++++++++++++ itf/templates/search/search.html | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 itf/static/js/search.js diff --git a/itf/static/js/register.js b/itf/static/js/register.js index 3a55cca..9c30172 100644 --- a/itf/static/js/register.js +++ b/itf/static/js/register.js @@ -1,6 +1,6 @@ var labelMap = { 'id_email': 'eMail:', - 'id_password2': 'retype password:' + 'id_password2': 'You could also narrow your search.
Select category:' } $(function() { diff --git a/itf/static/js/search.js b/itf/static/js/search.js new file mode 100644 index 0000000..ac1f95a --- /dev/null +++ b/itf/static/js/search.js @@ -0,0 +1,15 @@ +var labelMap = { + 'id_q': '

Search

', + 'id_models_0': 'You could also narrow your search.
Select a category.' +} + +$(function() { + for (var i in labelMap) { + if (labelMap.hasOwnProperty(i)) { + if ($('label[for=' + i + ']').length > 0) { + $('label[for=' + i + ']').eq(0).html(labelMap[i]); + } + } + } + +}); diff --git a/itf/templates/search/search.html b/itf/templates/search/search.html index c024282..f9632af 100755 --- a/itf/templates/search/search.html +++ b/itf/templates/search/search.html @@ -2,7 +2,7 @@ {% block extra_head %} - + {% endblock %} @@ -14,7 +14,7 @@
-

Search:

+