From 4caffe4709e0c386f9f27d7099296a23c526f291 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sat, 9 Sep 2023 19:16:39 +0800 Subject: [PATCH] Course.php: format code for JavaScript function accept() --- Course.php | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) 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 - { - $('
\n\ - \n\ \n\ -\n\ - \n\ -
').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); } }