mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
- LSrelation : Correction d'un bug : les boutons delete ne fonctionnaient plus.
This commit is contained in:
parent
af0fef7119
commit
764cf6c20a
1 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ var LSrelation = new Class({
|
|||
onDeleteBtnClick: function(img) {
|
||||
if (this._confirmDelete) {
|
||||
var li = img.getParent();
|
||||
var span = li.getFirst('span');
|
||||
var span = li.getFirst().getFirst('span');
|
||||
this.confirmBox = new LSconfirmBox({
|
||||
text: 'Etês-vous sur de vouloir supprimer "'+span.innerHTML+'" ?',
|
||||
startElement: img,
|
||||
|
@ -48,7 +48,7 @@ var LSrelation = new Class({
|
|||
|
||||
deleteFromImg: function(img) {
|
||||
var li = img.getParent();
|
||||
var span = li.getFirst('span');
|
||||
var span = li.getFirst().getFirst('span');
|
||||
var ul = li.getParent();
|
||||
img.destroy();
|
||||
LSdebug(ul.id);
|
||||
|
@ -69,7 +69,7 @@ var LSrelation = new Class({
|
|||
var data = JSON.decode(responseText);
|
||||
if ( varLSdefault.checkAjaxReturn(data) ) {
|
||||
try {
|
||||
$(data.dn).getParent().destroy();
|
||||
$(data.dn).getParent().getParent().destroy();
|
||||
}
|
||||
catch(e) {
|
||||
LSdebug('Erreur durant la suppression du li du DN : '+data.dn);
|
||||
|
|
Loading…
Reference in a new issue