Skip to content

Commit

Permalink
Remove the modal content so that when choosing another group or new w…
Browse files Browse the repository at this point in the history
…e get that instead of the first content
  • Loading branch information
Isaac Connor committed Nov 6, 2024
1 parent ade3a01 commit 4e14320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/skins/classic/views/js/groups.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Manage the NEW Group button
function newGroup() {
$j('#groupModal').remove();
$j.getJSON(thisUrl + '?request=modal&modal=group')
.done(function(data) {
insertModalHtml('groupdModal', data.html);
Expand All @@ -20,6 +21,7 @@ function editGroup( element ) {
if ( !gid ) {
console.log('No group id found in editGroup');
} else {
$j('#groupModal').remove();
$j.getJSON(thisUrl + '?request=modal&modal=group&gid=' + gid)
.done(function(data) {
insertModalHtml('groupModal', data.html);
Expand Down

0 comments on commit 4e14320

Please sign in to comment.