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