it/itf/static/js/search.js
2011-10-25 18:58:15 +01:00

16 lines
389 B
JavaScript

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).addClass(i).html(labelMap[i]);
}
}
}
});