mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
- LSformElement_text : l'autoGenerate devient optionnel lors de la création
This commit is contained in:
parent
8f2a3c12d6
commit
c8badaaa6c
2 changed files with 3 additions and 2 deletions
|
@ -165,7 +165,8 @@ $GLOBALS['LSobjects']['LSeepeople'] = array (
|
||||||
'html_type' => 'text',
|
'html_type' => 'text',
|
||||||
'html_options' => array(
|
'html_options' => array(
|
||||||
'generate_value_format' => '%{givenName} %{sn}',
|
'generate_value_format' => '%{givenName} %{sn}',
|
||||||
'autoGenerateOnModify' => true // default : false
|
'autoGenerateOnModify' => true, // default : false
|
||||||
|
'autoGenerateOnCreate' => true // default : false
|
||||||
),
|
),
|
||||||
'required' => 1,
|
'required' => 1,
|
||||||
'validation' => 'valid',
|
'validation' => 'valid',
|
||||||
|
|
|
@ -29,7 +29,7 @@ var LSformElement_text_field = new Class({
|
||||||
if (this.params.autoGenerateOnModify) {
|
if (this.params.autoGenerateOnModify) {
|
||||||
force = 1;
|
force = 1;
|
||||||
}
|
}
|
||||||
if ((this.input.value=='')||(force)) {
|
if (((this.input.value=='')&&(this.params.autoGenerateOnCreate))||(force)) {
|
||||||
this.dependsFields = this.parent.getDependsFields(this.format);
|
this.dependsFields = this.parent.getDependsFields(this.format);
|
||||||
this.dependsFields.each(function(el) {
|
this.dependsFields.each(function(el) {
|
||||||
var input = this.parent.getInput.bind(this.parent)(el);
|
var input = this.parent.getInput.bind(this.parent)(el);
|
||||||
|
|
Loading…
Reference in a new issue