From 8d30ecc5847a918c93e7b12f88d38097af8d7ded Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sat, 9 Sep 2023 19:22:15 +0800 Subject: [PATCH] Course.php: format code for JavaScript function deleteGroup() --- Course.php | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/Course.php b/Course.php index e7c4ccb..238d8a6 100644 --- a/Course.php +++ b/Course.php @@ -688,29 +688,30 @@ include 'Header.php'; function deleteGroup(id) { - try - { - $('
\n\ - \n\ -
').dialog({ - modal: true, - title:'Delete this group?', - 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:'Delete this group?', + 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); } }