Course.php: indent JavaScript code.

Bug430-Eden2
Lan Hui 2023-08-31 20:35:09 +08:00
parent 63c4da74f8
commit 71e835f3fd
1 changed files with 27 additions and 22 deletions

View File

@ -549,11 +549,15 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen
<script> <script>
function createGroup() { function createGroup() {
try try {
{ $('<form id="frm" method="get" action="Script.php"> \
$('<form id="frm" method="get" action="Script.php"><input type="hidden" name="creategroup" value="true">\n\ <input type="hidden" name="creategroup" value="true"> \
<input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > Group name <input type="text" name="name">\n\ <input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > \
<input type="hidden" name="url" value="<?php echo $url; ?>"> <input type="hidden" name="id" value="<?php echo $course_id; ?>"> </form>').dialog({ Group name \
<input type="text" name="name"> \
<input type="hidden" name="url" value="<?php echo $url; ?>"> \
<input type="hidden" name="id" value="<?php echo $course_id; ?>"> \
</form>').dialog({
modal: true, modal: true,
title:'Create a group', title:'Create a group',
close: function () { close: function () {
@ -571,8 +575,9 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen
} }
}); });
} catch(e) {
} catch(e){ alert(e); } alert(e);
}
} }