search labels text
This commit is contained in:
parent
0e5c13ebed
commit
0c70b98fbb
|
@ -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
15
itf/static/js/search.js
Normal 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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user