}
if ((!href.contains(fqdn) && !this.className.contains('popup')) || node.hasClass('popup')) {
node.click(function () {
- window.open(href);
+ window.open(this.href);
return false;
});
}
}
}
-function hashResponse(password1, password2, hasConfirmation) {
+function hashResponse(password1, password2, hasConfirmation, doAuth) {
var pw1 = $('[name=' + password1 + ']').val();
var pw2;
return false;
}
- alert("Le mot de passe que tu as rentré va être chiffré avant de nous parvenir par Internet ! Ainsi il ne circulera pas en clair.");
+ alert("Le mot de passe va être chiffré avant de nous parvenir par Internet ! Ainsi il ne circulera pas en clair.");
$('[name=' + password1 + ']').val('');
$('[name=pwhash]').val(hash_encrypt(pw1));
+
+ if (doAuth) {
+ $('[name=password]').val(pw1);
+ doChallengeResponse();
+ }
+
return true;
}
} else {
msg += " sur ton addresse.";
}
- $('#mail_sent').successMessage($url + '?token=' + token, msg);
+ $('#mail_sent').successMessage(url + '?token=' + token, msg);
return false;
}
}
// }}}
-// {{{ send test email
-
-function sendTestEmail(token, hruid)
-{
- var url = 'emails/test';
- var msg = "Un email a été envoyé avec succès";
- if (hruid != null) {
- url += '/' + hruid;
- msg += " sur l'adresse de " + hruid + ".";
- } else {
- msg += " sur ton addresse.";
+// {{{ updatepromofields
+
+function updatepromofields(egal1, egal2, promo2) {
+ var comparator = egal1.val();
+
+ if (comparator == '=') {
+ egal2.attr('disabled', 'disabled');
+ promo2.attr('disabled', 'disabled');
+ } else if (comparator == '<=' || comparator == '>=') {
+ egal2.removeAttr('disabled');
+ promo2.removeAttr('disabled');
+ if (comparator == '<=') {
+ egal2.val('>=');
+ } else {
+ egal2.val('<=');
+ }
}
- $('#mail_sent').successMessage($url + '?token=' + token, msg);
- return false;
}
// }}}
queryParams: {
offset: 0,
count: 10,
- allow_special: true,
+ allow_special: true
},
loadingClassLeft: 'ac_loading',
loadingClassRight: 'ac_loading_left',