This commit is contained in:
Karen 2011-10-25 23:28:59 +05:30
commit a77213ba5f
4 changed files with 21 additions and 5 deletions

View File

@ -539,14 +539,15 @@ padding-bottom:4px;
color:#F7BD00; color:#F7BD00;
font-family:'Century Gothic', Helvetica, Arial, 'DejaVu Sans', sans-serif; font-family:'Century Gothic', Helvetica, Arial, 'DejaVu Sans', sans-serif;
text-transform:uppercase; text-transform:uppercase;
margin-bottom:12px;} margin-bottom:12px;
vertical-align:bottom;}
#id_q { #id_q {
width:150px; width:150px;
height:16px; height:16px;
border:1px solid #f0f0f0; border:1px solid #f0f0f0;
background:url(/static/images/noel/search-icon.png) no-repeat right; background:url(/static/images/noel/search-icon.png) no-repeat right;
padding:2px 2px 2px 4px; padding:5px 2px 2px 4px;
font-family:Arial, Helvetica, 'DejaVu Sans', sans-serif; font-family:Arial, Helvetica, 'DejaVu Sans', sans-serif;
font-size:12px; font-size:12px;
color:#666; color:#666;

View File

@ -1,6 +1,6 @@
var labelMap = { var labelMap = {
'id_email': 'eMail:', 'id_email': 'eMail:',
'id_password2': 'retype password:' 'id_password2': 'You could also narrow your search.<br />Select category:'
} }
$(function() { $(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 %} {% block extra_head %}
<link rel="stylesheet" href="/static/css/noel/inner.css" type="text/css" /> <link rel="stylesheet" href="/static/css/noel/inner.css" type="text/css" />
<script type="text/javascript" src="/static/js/search.js"></script>
{% endblock %} {% endblock %}
@ -14,7 +14,7 @@
<div id="searchContainer"> <div id="searchContainer">
<div id="searchContent"> <div id="searchContent">
<h2>Search:</h2> <!-- <h2>Search:</h2> -->
<form method="get" action="." id="searchItf"> <form method="get" action="." id="searchItf">
<table> <table>