diff --git a/admin/communication.php b/admin/communication.php index d9ddefe..1bdb5b9 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -173,7 +173,7 @@ case 'email_save': exit; case 'dialog_edit': - + if(array_key_exists('id', $_GET)) { $id = intval($_GET['id']); $cloneid = 0; @@ -321,7 +321,7 @@ case 'dialog_edit': return false; } ); - + $("#comm_dialog_edit").dialog({ bgiframe: true, autoOpen: true, modal: true, resizable: false, diff --git a/js/sfiab.js b/js/sfiab.js index f5616e6..4f32eee 100644 --- a/js/sfiab.js +++ b/js/sfiab.js @@ -89,10 +89,10 @@ function opencommunicationeditor(key,id,fcid) { fcstr="&fundraising_campaigns_id="+fcid; if(id) { - $("#content").load("communication.php?action=dialog_edit&id="+id+fcstr,null,function() { + $("#debug").load("communication.php?action=dialog_edit&id="+id+fcstr,null,function() { }); } else { - $("#content").load("communication.php?action=dialog_edit&key="+key+fcstr,null,function() { + $("#debug").load("communication.php?action=dialog_edit&key="+key+fcstr,null,function() { }); } return false;