mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-16 15:33:02 +01:00
LSformElement_mail : Added disableMailSending parameter
This commit is contained in:
parent
6d9e0f0c8d
commit
9db97a53f3
2 changed files with 13 additions and 2 deletions
|
@ -56,6 +56,13 @@ class LSformElement_mail extends LSformElement_text {
|
||||||
}
|
}
|
||||||
return parent :: getDisplay();
|
return parent :: getDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fetchTemplate($template=NULL,$variables=array()) {
|
||||||
|
if (isset($this -> params['html_options']['disableMailSending']) && $this -> params['html_options']['disableMailSending']) {
|
||||||
|
$this -> fetchVariables['uriClass'] .= " LSformElement_mail_disableMailSending";
|
||||||
|
}
|
||||||
|
return parent :: fetchTemplate($template,$variables);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -12,10 +12,14 @@ var LSformElement_mail = new Class({
|
||||||
el = document;
|
el = document;
|
||||||
}
|
}
|
||||||
el.getElements('input.LSformElement_mail').each(function(input) {
|
el.getElements('input.LSformElement_mail').each(function(input) {
|
||||||
|
if (!input.hasClass('LSformElement_mail_disableMailSending')) {
|
||||||
this.addBtnAfter.bind(this)(input);
|
this.addBtnAfter.bind(this)(input);
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
el.getElements('a.LSformElement_mail').each(function(a) {
|
el.getElements('a.LSformElement_mail').each(function(a) {
|
||||||
|
if (!input.hasClass('LSformElement_mail_disableMailSending')) {
|
||||||
this.addBtnAfter.bind(this)(a);
|
this.addBtnAfter.bind(this)(a);
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue