it/itf/static/js/search.js

16 lines
389 B
JavaScript
Raw 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 17:36:42 +00:00
'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) {
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
}
}
}
});