X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fsearch%2Fadv.form.tpl;h=4d4770376fc233f4663c987bc0dcb156270738f1;hb=ad3c767b2947d508c66c9ea9692aec710793f95e;hp=ecc0301d591a20d2d7bff0b5f0210b459255d447;hpb=956cd5c10a027f75283d91545a5d5feeed1874ef;p=platal.git
diff --git a/templates/search/adv.form.tpl b/templates/search/adv.form.tpl
index ecc0301..4d47703 100644
--- a/templates/search/adv.form.tpl
+++ b/templates/search/adv.form.tpl
@@ -113,6 +113,15 @@
});
}
+ // when checking/unchecking "only_referent", disable/enable some fields
+ function changeOnlyReferent() {
+ if ($("#only_referent").is(':checked')) {
+ $("input[name='entreprise']").attr('disabled', true);
+ } else {
+ $("input[name='entreprise']").removeAttr('disabled');
+ }
+ }
+
// when choosing a job term in tree, hide tree and set job term field
function searchForJobTerm(treeid, jtid, full_name) {
$(".term_tree").remove();
@@ -224,6 +233,10 @@
// to ensure that, we unset it
$(this).parent().find('.autocompleteTarget').val('');
});
+
+ $("#only_referent").change(function() { changeOnlyReferent(); });
+ changeOnlyReferent();
+
});
/** Regexps to wipe out from search queries */
var default_form_values = [ /&woman=0(&|$)/, /&subscriber=0(&|$)/, /&alive=0(&|$)/, /&egal[12]=[^&]*&promo[12]=(&|$)/g, /&networking_type=0(&|$)/, /&[^&=]+=(&|$)/g ];
@@ -264,6 +277,12 @@ function cleanForm(f) {
+
@@ -293,6 +312,11 @@ function cleanForm(f) {
et
+
@@ -332,6 +356,27 @@ function cleanForm(f) {
+ A une redirection active |
+
+
+ |
+
+
En vie |
|