Course.php: indent JavaScript code.
parent
63c4da74f8
commit
71e835f3fd
49
Course.php
49
Course.php
|
@ -549,30 +549,35 @@ 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({
|
||||
modal: true,
|
||||
title:'Create a group',
|
||||
close: function () {
|
||||
var closeBtn = $('.ui-dialog-titlebar-close');
|
||||
closeBtn.html('');
|
||||
},
|
||||
buttons: {
|
||||
'Create': function () {
|
||||
$('#frm').submit();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
'Cancel': function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
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 () {
|
||||
var closeBtn = $('.ui-dialog-titlebar-close');
|
||||
closeBtn.html('');
|
||||
},
|
||||
buttons: {
|
||||
'Create': function () {
|
||||
$('#frm').submit();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
'Cancel': function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
alert(e);
|
||||
}
|
||||
});
|
||||
|
||||
} catch(e){ alert(e); }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue