Remove the modal content so that when choosing another group or new we get that instead of the first content

pull/4202/head
Isaac Connor 2024-11-06 13:18:24 -05:00
parent ade3a01902
commit 4e14320978
1 changed files with 2 additions and 0 deletions

View File

@ -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);
@ -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);