includes/clientside/static/acl.js
changeset 541 acb7e23b6ffa
parent 535 b31eb2b6c137
child 555 ac4c6a7f01d8
equal deleted inserted replaced
540:1e4b759da336 541:acb7e23b6ffa
   693   saver.id = aclManagerID + '_next';
   693   saver.id = aclManagerID + '_next';
   694   
   694   
   695   closer = document.createElement('input');
   695   closer = document.createElement('input');
   696   closer.type = 'button';
   696   closer.type = 'button';
   697   closer.value = $lang.get('etc_cancel_changes');
   697   closer.value = $lang.get('etc_cancel_changes');
   698   closer.onclick = function() { if(!confirm($lang.get('acl_msg_closeacl_confirm'))) return false; killACLManager(); return false; }
   698   closer.onclick = function()
       
   699   {
       
   700     miniPromptMessage({
       
   701       title: $lang.get('acl_msg_closeacl_confirm_title'),
       
   702       message: $lang.get('acl_msg_closeacl_confirm_body'),
       
   703       buttons: [
       
   704         {
       
   705           text: $lang.get('acl_btn_close'),
       
   706           color: 'red',
       
   707           style: {
       
   708             fontWeight: 'bold'
       
   709           },
       
   710           onclick: function(e)
       
   711           {
       
   712             killACLManager();
       
   713             miniPromptDestroy(this);
       
   714           }
       
   715         },
       
   716         {
       
   717           text: $lang.get('etc_cancel'),
       
   718           onclick: function(e)
       
   719           {
       
   720             miniPromptDestroy(this);
       
   721           }
       
   722         }
       
   723       ]
       
   724     });
       
   725     return false;
       
   726   }
   699   
   727   
   700   spacer1 = document.createTextNode('  ');
   728   spacer1 = document.createTextNode('  ');
   701   spacer2 = document.createTextNode('  ');
   729   spacer2 = document.createTextNode('  ');
   702   
   730   
   703   panel.appendChild(back);
   731   panel.appendChild(back);