includes/clientside/static/acl.js
changeset 377 bb3e6c3bd4f4
parent 345 4ccdfeee9a11
child 407 35d94240a197
equal deleted inserted replaced
376:66732bd4532c 377:bb3e6c3bd4f4
   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) { alert('ONCLICK'); return false; };
   438             a.onclick = function(e) { this.parentNode.parentNode.removeChild(this.parentNode); return false; };
   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) { alert('ONCLICK'); return false; };
   443             a2.onclick = function(e) { killACLManager(); return false; };
   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>';