From d5165af3081a4fac9e0351845d4d31858eeb37dd Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sat, 9 Sep 2023 19:14:33 +0800 Subject: [PATCH] Course.php: format code for JavaScript function invite() --- Course.php | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) 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 - { - $('
\n\ - Enter Student ID to invite \n\ -
').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 { + $('
\ + \ + Enter Student ID to invite \ + \ + \ + \ +
').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); } }