mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-30 05:34:49 +01:00
LSformElement.js : do not handle sub li elements on removing one field
This commit is contained in:
parent
4715aba0f1
commit
ccd932d5c0
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ var LSformElement = new Class({
|
||||||
},
|
},
|
||||||
|
|
||||||
onRemoveFieldBtnClick: function(field) {
|
onRemoveFieldBtnClick: function(field) {
|
||||||
if (this.ul.getElements('li').length == 1) {
|
if (this.ul.getChildren('li').length == 1) {
|
||||||
field.clearValue.bind(field)();
|
field.clearValue.bind(field)();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue