diff --git a/Course.php b/Course.php index 1116c16..ac385b7 100644 --- a/Course.php +++ b/Course.php @@ -582,32 +582,33 @@ include 'Header.php'; function invite(id) { - - try - { - $('
').dialog({ - modal: true, - title:'Invite students to group', - close: function () { - var closeBtn = $('.ui-dialog-titlebar-close'); - closeBtn.html(''); - }, - buttons: { - 'Invite': function () { - $('#frm').submit(); - - $(this).dialog('close'); - }, - 'Cancel': function () { - - $(this).dialog('close'); - } - + try { + $('').dialog({ + modal: true, + title:'Invite students to group', + close: function () { + var closeBtn = $('.ui-dialog-titlebar-close'); + closeBtn.html(''); + }, + buttons: { + 'Invite': function () { + $('#frm').submit(); + $(this).dialog('close'); + }, + 'Cancel': function () { + $(this).dialog('close'); + } + } + }); + } catch(e) { + alert(e); } - }); - } catch(e){ alert(e); } }