diff --git a/Course.php b/Course.php index ac385b7..4131ac0 100644 --- a/Course.php +++ b/Course.php @@ -615,33 +615,34 @@ include 'Header.php'; function accept(id,val) { - try - { - $('
').dialog({ - modal: true, - title:'Respond to group invitation', - close: function () { - var closeBtn = $('.ui-dialog-titlebar-close'); - closeBtn.html(''); - }, - buttons: { - 'Confirm': function () { - $('#frm').submit(); - - $(this).dialog('close'); - }, - 'Cancel': function () { - - $(this).dialog('close'); - } - + try { + $('').dialog({ + modal: true, + title:'Respond to group invitation', + close: function () { + var closeBtn = $('.ui-dialog-titlebar-close'); + closeBtn.html(''); + }, + buttons: { + 'Confirm': function () { + $('#frm').submit(); + $(this).dialog('close'); + }, + 'Cancel': function () { + $(this).dialog('close'); + } + } + }); + } catch(e) { + alert(e); } - }); - } catch(e){ alert(e); } }