433 note.appendChild(document.createElement('br')); |
433 note.appendChild(document.createElement('br')); |
434 note.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_body', { target_name: data.target_name }))); |
434 note.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_body', { target_name: data.target_name }))); |
435 note.appendChild(document.createElement('br')); |
435 note.appendChild(document.createElement('br')); |
436 var a = document.createElement('a'); |
436 var a = document.createElement('a'); |
437 a.href = '#'; |
437 a.href = '#'; |
438 a.onclick = function(e) { this.parentNode.parentNode.removeChild(this.parentNode); return false; }; |
438 a.id = aclManagerID + '_btn_dismiss'; |
439 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
439 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
440 note.appendChild(a); |
440 note.appendChild(a); |
441 var a2 = document.createElement('a'); |
441 var a2 = document.createElement('a'); |
442 a2.href = '#'; |
442 a2.href = '#'; |
443 a2.onclick = function(e) { killACLManager(); return false; }; |
443 a.id = aclManagerID + '_btn_close'; |
444 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
444 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
445 note.appendChild(a2); |
445 note.appendChild(a2); |
446 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
446 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
447 if(!document.getElementById(aclManagerID+'_deletelnk')) |
447 if(!document.getElementById(aclManagerID+'_deletelnk')) |
448 document.getElementById(aclManagerID + '_main').innerHTML += '<p id="'+aclManagerID+'_deletelnk" style="text-align: right;"><a href="#delete_acl_rule" onclick="if(confirm(\'' + $lang.get('acl_msg_deleterule_confirm') + '\')) __aclDeleteRule(); return false;" style="color: red;">' + $lang.get('acl_lbl_deleterule') + '</a></p>'; |
448 document.getElementById(aclManagerID + '_main').innerHTML += '<p id="'+aclManagerID+'_deletelnk" style="text-align: right;"><a href="#delete_acl_rule" onclick="if(confirm(\'' + $lang.get('acl_msg_deleterule_confirm') + '\')) __aclDeleteRule(); return false;" style="color: red;">' + $lang.get('acl_lbl_deleterule') + '</a></p>'; |
449 //fadeInfoBoxes(); |
449 //fadeInfoBoxes(); |
450 document.getElementById(aclManagerID+'_main').scrollTop = 0; |
450 document.getElementById(aclManagerID+'_main').scrollTop = 0; |
|
451 |
|
452 var a = document.getElementById(aclManagerID + '_btn_dismiss'); |
|
453 var a2 = document.getElementById(aclManagerID + '_btn_close'); |
|
454 |
|
455 a.setAttribute('onclick', function(e) { this.parentNode.parentNode.removeChild(this.parentNode); return false; }); |
|
456 a2.setAttribute('onclick', function(e) { killACLManager(); return false; }); |
451 |
457 |
452 aclDataCache.mode = 'save_edit'; |
458 aclDataCache.mode = 'save_edit'; |
453 break; |
459 break; |
454 case 'delete': |
460 case 'delete': |
455 |
461 |