Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixed 'add member' popup in SecurityAdmin

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92851 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 2c7e4c1dd4c4a8ec7da61b940e8ebee30ab56ce2 1 parent 683dfa9
@chillu chillu authored
Showing with 17 additions and 10 deletions.
  1. +17 −10 javascript/SecurityAdmin.js
View
27 javascript/SecurityAdmin.js
@@ -17,13 +17,20 @@
}
);
});
-}(jQuery));
-/**
- * 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');
- memberTableFields[0].openPopup(null,addLinks[0].href,tables[0]);
-}
+
+ $.concrete('ss', function($){
+ $('#Form_EditForm .Actions #action_addmember').concrete({
+ onclick: function(e) {
+ // CAUTION: Assumes that a MemberTableField-instance is present as an editing form
+ var t = $('#Form_EditForm_Members');
+ t[0].openPopup(
+ null,
+ $('base').attr('href') + t.find('a.addlink').attr('href'),
+ t.find('table')[0]
+ );
+ return false;
+ }
+ });
+ });
+
+}(jQuery));
Please sign in to comment.
Something went wrong with that request. Please try again.