search labels text

This commit is contained in:
Sanj 2011-10-25 18:36:42 +01:00
parent 0e5c13ebed
commit 0c70b98fbb
3 changed files with 18 additions and 3 deletions

View File

@ -1,6 +1,6 @@
var labelMap = {
'id_email': 'eMail:',
'id_password2': 'retype password:'
'id_password2': 'You could also narrow your search.<br />Select category:'
}
$(function() {

15
itf/static/js/search.js Normal file
View File

@ -0,0 +1,15 @@
var labelMap = {
'id_q': '<h2>Search</h2>',
'id_models_0': 'You could also narrow your search.<br />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]);
}
}
}
});

View File

@ -2,7 +2,7 @@
{% block extra_head %}
<link rel="stylesheet" href="/static/css/noel/inner.css" type="text/css" />
<script type="text/javascript" src="/static/js/search.js"></script>
{% endblock %}
@ -14,7 +14,7 @@
<div id="searchContainer">
<div id="searchContent">
<h2>Search:</h2>
<!-- <h2>Search:</h2> -->
<form method="get" action="." id="searchItf">
<table>