Remove the modal content so that when choosing another group or new we get that instead of the first content
parent
ade3a01902
commit
4e14320978
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue