includes/clientside/static/acl.js
changeset 419 b8b4e38825db
parent 407 35d94240a197
child 472 bc4b58034f4d
--- a/includes/clientside/static/acl.js	Tue Feb 12 07:44:16 2008 -0500
+++ b/includes/clientside/static/acl.js	Tue Feb 12 22:17:58 2008 -0500
@@ -435,12 +435,12 @@
             note.appendChild(document.createElement('br'));
             var a = document.createElement('a');
             a.href = '#';
-            a.onclick = function(e) { this.parentNode.parentNode.removeChild(this.parentNode); return false; };
+            a.id = aclManagerID + '_btn_dismiss';
             a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :'));
             note.appendChild(a);
             var a2 = document.createElement('a');
             a2.href = '#';
-            a2.onclick = function(e) { killACLManager(); return false; };
+            a.id = aclManagerID + '_btn_close';
             a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]'));
             note.appendChild(a2);
             document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild);
@@ -449,6 +449,12 @@
             //fadeInfoBoxes();
             document.getElementById(aclManagerID+'_main').scrollTop = 0;
             
+            var a = document.getElementById(aclManagerID + '_btn_dismiss');
+            var a2 = document.getElementById(aclManagerID + '_btn_close');
+            
+            a.setAttribute('onclick', function(e) { this.parentNode.parentNode.removeChild(this.parentNode); return false; });
+            a2.setAttribute('onclick', function(e) { killACLManager(); return false; });
+            
             aclDataCache.mode = 'save_edit';
             break;
           case 'delete':