82 thispage = strToPageID(title); |
82 thispage = strToPageID(title); |
83 groups.page_id = thispage[0]; |
83 groups.page_id = thispage[0]; |
84 groups.namespace = thispage[1]; |
84 groups.namespace = thispage[1]; |
85 __aclBuildSelector(groups); |
85 __aclBuildSelector(groups); |
86 } |
86 } |
87 }); |
87 }, true); |
88 } |
88 } |
89 |
89 |
90 function __aclBuildSelector(groups) |
90 function __aclBuildSelector(groups) |
91 { |
91 { |
92 thispage = strToPageID(title); |
92 thispage = strToPageID(title); |
424 note.appendChild(b); |
424 note.appendChild(b); |
425 note.appendChild(document.createElement('br')); |
425 note.appendChild(document.createElement('br')); |
426 note.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_body', { target_name: data.target_name }))); |
426 note.appendChild(document.createTextNode($lang.get('acl_lbl_save_success_body', { target_name: data.target_name }))); |
427 note.appendChild(document.createElement('br')); |
427 note.appendChild(document.createElement('br')); |
428 var a = document.createElement('a'); |
428 var a = document.createElement('a'); |
429 a.href = 'javascript:void(0);'; |
429 a.href = '#'; |
430 a.onclick = function() { this.parentNode.parentNode.removeChild(this.parentNode); return false; }; |
430 a.onclick = function(e) { alert('ONCLICK'); return false; }; |
431 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
431 a.appendChild(document.createTextNode('[ ' + $lang.get('acl_btn_success_dismiss') + ' :')); |
432 note.appendChild(a); |
432 note.appendChild(a); |
433 var a2 = document.createElement('a'); |
433 var a2 = document.createElement('a'); |
434 a2.href = 'javascript:void(0);'; |
434 a2.href = '#'; |
435 a2.onclick = function() { killACLManager(); return false; }; |
435 a2.onclick = function(e) { alert('ONCLICK'); return false; }; |
436 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
436 a2.appendChild(document.createTextNode(': ' + $lang.get('acl_btn_success_close') + ' ]')); |
437 note.appendChild(a2); |
437 note.appendChild(a2); |
438 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
438 document.getElementById(aclManagerID + '_main').insertBefore(note, document.getElementById(aclManagerID + '_main').firstChild); |
439 if(!document.getElementById(aclManagerID+'_deletelnk')) |
439 if(!document.getElementById(aclManagerID+'_deletelnk')) |
440 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>'; |
440 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>'; |