- LSviewList : Correction d'un bug JS
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 Mar 2009 01:25:38 +0000 (01:25 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 20 Mar 2009 01:25:38 +0000 (01:25 +0000)
trunk/includes/js/LSview.js

index 3a94ae2..e180920 100644 (file)
@@ -50,7 +50,7 @@ var LSview = new Class({
       Event(event).stop();
       if (!this._confirmBoxOpen) {
         this._confirmBoxOpen = 1;
-        var name = a.getParent().getPrevious('td').getElement('a').innerHTML;
+        var name = a.getParent().getParent().getFirst('td').getElement('a').innerHTML;
         this.confirmBox = new LSconfirmBox({
           text:         this.labels.delete_confirm_text + ' "'+name+'" ?', 
           startElement: a,