431 b.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_title'))); |
431 b.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_title'))); |
432 note.appendChild(b); |
432 note.appendChild(b); |
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 |
|
437 /* |
436 var a = document.createElement('a'); |
438 var a = document.createElement('a'); |
437 a.href = '#'; |
439 a.href = '#'; |
438 a.id = aclManagerID + '_btn_dismiss'; |
440 a.id = aclManagerID + '_btn_dismiss'; |
439 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
441 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
440 note.appendChild(a); |
442 note.appendChild(a); |
441 var a2 = document.createElement('a'); |
443 var a2 = document.createElement('a'); |
442 a2.href = '#'; |
444 a2.href = '#'; |
443 a.id = aclManagerID + '_btn_close'; |
445 a.id = aclManagerID + '_btn_close'; |
444 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
446 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
445 note.appendChild(a2); |
447 note.appendChild(a2); |
|
448 */ |
|
449 |
|
450 var a_dismiss = document.createElement('a'); |
|
451 a_dismiss.href = '#'; |
|
452 a_dismiss.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
|
453 note.appendChild(a_dismiss); |
|
454 |
|
455 var a_close = document.createElement('a'); |
|
456 a_close.href = '#'; |
|
457 a_close.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
|
458 note.appendChild(a_close); |
|
459 |
446 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
460 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
447 if(!document.getElementById(aclManagerID+'_deletelnk')) |
461 |
|
462 a_dismiss.setAttribute('onclick', 'var parent = this.parentNode.parentNode; parent.removeChild(this.parentNode); return false;'); |
|
463 a_close.setAttribute('onclick', 'killACLManager(); return false;'); |
|
464 |
|
465 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>'; |
466 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(); |
467 |
450 document.getElementById(aclManagerID+'_main').scrollTop = 0; |
468 document.getElementById(aclManagerID+'_main').scrollTop = 0; |
451 |
469 |
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; }); |
|
457 |
|
458 aclDataCache.mode = 'save_edit'; |
470 aclDataCache.mode = 'save_edit'; |
459 break; |
471 break; |
460 case 'delete': |
472 case 'delete': |
461 |
473 |
462 params = { |
474 params = { |