mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 03:43:08 +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) {
|
onDeleteBtnClick: function(img) {
|
||||||
if (this._confirmDelete) {
|
if (this._confirmDelete) {
|
||||||
var li = img.getParent();
|
var li = img.getParent();
|
||||||
var span = li.getFirst('span');
|
var span = li.getFirst().getFirst('span');
|
||||||
this.confirmBox = new LSconfirmBox({
|
this.confirmBox = new LSconfirmBox({
|
||||||
text: 'Etês-vous sur de vouloir supprimer "'+span.innerHTML+'" ?',
|
text: 'Etês-vous sur de vouloir supprimer "'+span.innerHTML+'" ?',
|
||||||
startElement: img,
|
startElement: img,
|
||||||
|
@ -48,7 +48,7 @@ var LSrelation = new Class({
|
||||||
|
|
||||||
deleteFromImg: function(img) {
|
deleteFromImg: function(img) {
|
||||||
var li = img.getParent();
|
var li = img.getParent();
|
||||||
var span = li.getFirst('span');
|
var span = li.getFirst().getFirst('span');
|
||||||
var ul = li.getParent();
|
var ul = li.getParent();
|
||||||
img.destroy();
|
img.destroy();
|
||||||
LSdebug(ul.id);
|
LSdebug(ul.id);
|
||||||
|
@ -69,7 +69,7 @@ var LSrelation = new Class({
|
||||||
var data = JSON.decode(responseText);
|
var data = JSON.decode(responseText);
|
||||||
if ( varLSdefault.checkAjaxReturn(data) ) {
|
if ( varLSdefault.checkAjaxReturn(data) ) {
|
||||||
try {
|
try {
|
||||||
$(data.dn).getParent().destroy();
|
$(data.dn).getParent().getParent().destroy();
|
||||||
}
|
}
|
||||||
catch(e) {
|
catch(e) {
|
||||||
LSdebug('Erreur durant la suppression du li du DN : '+data.dn);
|
LSdebug('Erreur durant la suppression du li du DN : '+data.dn);
|
||||||
|
|
Loading…
Reference in a new issue