Skip to content

Commit

Permalink
API Convert SecurityAdmin to be a ModelAdmin
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Rainville <[email protected]>
  • Loading branch information
emteknetnz and Maxime Rainville committed Sep 15, 2022
1 parent 4cf683c commit b79bdea
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 565 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/MemberImportForm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions client/src/legacy/MemberImportForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $.entwine('ss', function($){
/**
* Class: .import-form .advanced
*/
$('.import-form .advanced').entwine({
$('#Form_ImportForm .advanced').entwine({
onmatch: function() {
this._super();

Expand All @@ -21,13 +21,19 @@ $.entwine('ss', function($){
/**
* Class: .import-form a.toggle-advanced
*/
$('.import-form a.toggle-advanced').entwine({
$('#Form_ImportForm a.toggle-advanced').entwine({

/**
* Function: onclick
*/
onclick: function(e) {
this.parents('form:eq(0)').find('.advanced').toggle();
let $el = $('#Form_ImportForm .advanced');
// .toggle() not working for some strange reason, so doing manually
if ($el.css('display') === 'none') {
$el.show();
} else {
$el.hide();
}
return false;
}
});
Expand Down
121 changes: 0 additions & 121 deletions code/GroupImportForm.php

This file was deleted.

146 changes: 0 additions & 146 deletions code/MemberImportForm.php

This file was deleted.

Loading

0 comments on commit b79bdea

Please sign in to comment.