summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-01-17 12:52:58 (GMT)
committerFrédéric Péters <fpeters@0d.be>2012-01-17 12:54:44 (GMT)
commitd15bd101a28b5b105f53de863ef64931892df72a (patch)
tree41881a0f03cc6af5ed2957a6ce87c48b1d247a2e
parent7c7248231596f3e334c86c7d778d7fdf5473374b (diff)
downloadtabellio.searchform-d15bd101a28b5b105f53de863ef64931892df72a.zip
tabellio.searchform-d15bd101a28b5b105f53de863ef64931892df72a.tar.gz
tabellio.searchform-d15bd101a28b5b105f53de863ef64931892df72a.tar.bz2
add help links to checkboxes, remove <select> default content
-rw-r--r--tabellio/searchform/docsearch.pt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tabellio/searchform/docsearch.pt b/tabellio/searchform/docsearch.pt
index 235c957..b8ae313 100644
--- a/tabellio/searchform/docsearch.pt
+++ b/tabellio/searchform/docsearch.pt
@@ -203,15 +203,16 @@ function setup_help_link(index, elem)
var parts = elem.id.split('-');
var fieldname = parts[parts.length-1];
var help_link = $('#aide-'+fieldname).clone();
- console.log('help_link:', help_link);
if (help_link.length > 0) {
help_link.text('?');
$(elem).find('label.horizontal').append(help_link);
+ $(elem).find('span.option label').append(help_link);
}
}
(function($) {
$().ready(function() {
+ $('option[value="--NOVALUE--"]').text('');
$('div.field').each(setup_help_link);
});
})(jQuery);