Course.php: format code for JavaScript function invite()
parent
a8b235052f
commit
d5165af308
21
Course.php
21
Course.php
|
@ -582,12 +582,14 @@ include 'Header.php';
|
||||||
|
|
||||||
|
|
||||||
function invite(id) {
|
function invite(id) {
|
||||||
|
try {
|
||||||
try
|
$('<form id="frm" method="get" action="Script.php"> \
|
||||||
{
|
<input type="hidden" name="groupinvite" value="true"> \
|
||||||
$('<form id="frm" method="get" action="Script.php"><input type="hidden" name="groupinvite" value="true">\n\
|
<input type="hidden" name="groupid" value="'+id+'" > Enter Student ID to invite \
|
||||||
<input type="hidden" name="groupid" value="'+id+'" > Enter Student ID to invite <input type="text" name="student_id">\n\
|
<input type="text" name="student_id"> \
|
||||||
<input type="hidden" name="url" value="<?php echo $url; ?>"> <input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> </form>').dialog({
|
<input type="hidden" name="url" value="<?php echo $url; ?>"> \
|
||||||
|
<input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> \
|
||||||
|
</form>').dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
title:'Invite students to group',
|
title:'Invite students to group',
|
||||||
close: function () {
|
close: function () {
|
||||||
|
@ -597,17 +599,16 @@ include 'Header.php';
|
||||||
buttons: {
|
buttons: {
|
||||||
'Invite': function () {
|
'Invite': function () {
|
||||||
$('#frm').submit();
|
$('#frm').submit();
|
||||||
|
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
},
|
},
|
||||||
'Cancel': function () {
|
'Cancel': function () {
|
||||||
|
|
||||||
$(this).dialog('close');
|
$(this).dialog('close');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(e){ alert(e); }
|
} catch(e) {
|
||||||
|
alert(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue