it/itf/static/js/search.js

16 lines
384 B
JavaScript
Raw Permalink Normal View History

2011-10-25 17:36:42 +00:00
var labelMap = {
2011-10-25 17:58:15 +00:00
'id_q': '<h2>Search:</h2>',
2011-10-25 18:24:03 +00:00
'id_models_0': 'You could also narrow your search. Select a category.'
2011-10-25 17:36:42 +00:00
}
$(function() {
for (var i in labelMap) {
if (labelMap.hasOwnProperty(i)) {
if ($('label[for=' + i + ']').length > 0) {
2011-10-25 17:58:15 +00:00
$('label[for=' + i + ']').eq(0).addClass(i).html(labelMap[i]);
2011-10-25 17:36:42 +00:00
}
}
}
});