Course.php: indent JavaScript code.
parent
63c4da74f8
commit
71e835f3fd
19
Course.php
19
Course.php
|
@ -549,11 +549,15 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen
|
|||
<script>
|
||||
|
||||
function createGroup() {
|
||||
try
|
||||
{
|
||||
$('<form id="frm" method="get" action="Script.php"><input type="hidden" name="creategroup" value="true">\n\
|
||||
<input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > Group name <input type="text" name="name">\n\
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"> <input type="hidden" name="id" value="<?php echo $course_id; ?>"> </form>').dialog({
|
||||
try {
|
||||
$('<form id="frm" method="get" action="Script.php"> \
|
||||
<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"> \
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"> \
|
||||
<input type="hidden" name="id" value="<?php echo $course_id; ?>"> \
|
||||
</form>').dialog({
|
||||
modal: true,
|
||||
title:'Create a group',
|
||||
close: function () {
|
||||
|
@ -571,8 +575,9 @@ where Lab_Report_ID=$lab_repo_id and (lab_report_submissions.Student_id='$studen
|
|||
|
||||
}
|
||||
});
|
||||
|
||||
} catch(e){ alert(e); }
|
||||
} catch(e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue