Course.php: format code for JavaScript function removeMember()
parent
4caffe4709
commit
eccd584d76
17
Course.php
17
Course.php
|
@ -657,12 +657,12 @@ include 'Header.php';
|
|||
|
||||
|
||||
function removeMember(student_id, group_id) {
|
||||
try
|
||||
{
|
||||
$('<form id="frm" method="get" action="Script.php"><input type="hidden" name="removemember" value="true">\n\
|
||||
<input type="hidden" name="student_id" value="'+student_id+'" > \n\
|
||||
<input type="hidden" name="group_id" value="'+group_id+'">\n\
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
|
||||
try {
|
||||
$('<form id="frm" method="get" action="Script.php"> \
|
||||
<input type="hidden" name="removemember" value="true"> \
|
||||
<input type="hidden" name="student_id" value="'+student_id+'" > \
|
||||
<input type="hidden" name="group_id" value="'+group_id+'"> \
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
|
||||
modal: true,
|
||||
title:'Kick out '+student_id+'?',
|
||||
close: function () {
|
||||
|
@ -677,10 +677,11 @@ include 'Header.php';
|
|||
'No': function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
} catch(e){ alert(e); }
|
||||
} catch(e) {
|
||||
alert(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue