From eccd584d76e6f94f3be108befd6d76d5e6203819 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sat, 9 Sep 2023 19:20:48 +0800 Subject: [PATCH] Course.php: format code for JavaScript function removeMember() --- Course.php | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/Course.php b/Course.php index 4131ac0..e7c4ccb 100644 --- a/Course.php +++ b/Course.php @@ -657,30 +657,31 @@ include 'Header.php'; function removeMember(student_id, group_id) { - try - { - $('
\n\ - \n\ - \n\ -
').dialog({ - modal: true, - title:'Kick out '+student_id+'?', - close: function () { - var closeBtn = $('.ui-dialog-titlebar-close'); - closeBtn.html(''); - }, - buttons: { - 'Yes': function () { - $('#frm').submit(); - $(this).dialog('close'); - }, - 'No': function () { - $(this).dialog('close'); - } - + try { + $('
\ + \ + \ + \ +
').dialog({ + modal: true, + title:'Kick out '+student_id+'?', + close: function () { + var closeBtn = $('.ui-dialog-titlebar-close'); + closeBtn.html(''); + }, + buttons: { + 'Yes': function () { + $('#frm').submit(); + $(this).dialog('close'); + }, + 'No': function () { + $(this).dialog('close'); + } + } + }); + } catch(e) { + alert(e); } - }); - } catch(e){ alert(e); } }