mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-09-06 09:41:12 +02:00
11 lines
503 B
JavaScript
11 lines
503 B
JavaScript
|
/**
|
||
|
* CAUTION: Assumes that a MemberTableField-instance is present as an editing form
|
||
|
*/
|
||
|
function action_addmember_right() {
|
||
|
var memberTableFields = document.getElementsBySelector('#Form_EditForm div.MemberTableField');
|
||
|
var tables = document.getElementsBySelector('#Form_EditForm div.MemberTableField table');
|
||
|
var addLinks = document.getElementsBySelector('#Form_EditForm div.MemberTableField a.addlink');
|
||
|
try {
|
||
|
memberTableFields[0].openPopup(null,addLinks[0].href,tables[0]);
|
||
|
} catch(err) {}
|
||
|
}
|