Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / silverstripe-gsoc / cms / javascript / SecurityAdmin_right.js
blob13afcc33bff9ffe6c3e9dfc8b99e766848cf66c2
1 /**
2  * CAUTION: Assumes that a MemberTableField-instance is present as an editing form
3  */
4 function action_addmember_right() {
5         var memberTableFields = document.getElementsBySelector('#Form_EditForm div.MemberTableField');
6         var tables = document.getElementsBySelector('#Form_EditForm div.MemberTableField table');
7         var addLinks = document.getElementsBySelector('#Form_EditForm div.MemberTableField a.addlink');
8         try {
9                 memberTableFields[0].openPopup(null,addLinks[0].href,tables[0]);
10         } catch(err) {}