Course.php: format code for JavaScript function deleteGroup()
parent
eccd584d76
commit
8d30ecc584
45
Course.php
45
Course.php
|
@ -688,29 +688,30 @@ include 'Header.php';
|
|||
|
||||
function deleteGroup(id) {
|
||||
|
||||
try
|
||||
{
|
||||
$('<form id="frm" method="get" action="Script.php"><input type="hidden" name="deletegroup" value="true">\n\
|
||||
<input type="hidden" name="group_id" value="'+id+'" > \n\
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
|
||||
modal: true,
|
||||
title:'Delete this group?',
|
||||
close: function () {
|
||||
var closeBtn = $('.ui-dialog-titlebar-close');
|
||||
closeBtn.html('');
|
||||
},
|
||||
buttons: {
|
||||
'Yes': function () {
|
||||
$('#frm').submit();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
'No': function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
|
||||
try {
|
||||
$('<form id="frm" method="get" action="Script.php"> \
|
||||
<input type="hidden" name="deletegroup" value="true"> \
|
||||
<input type="hidden" name="group_id" value="'+id+'" > \
|
||||
<input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
|
||||
modal: true,
|
||||
title:'Delete this group?',
|
||||
close: function () {
|
||||
var closeBtn = $('.ui-dialog-titlebar-close');
|
||||
closeBtn.html('');
|
||||
},
|
||||
buttons: {
|
||||
'Yes': function () {
|
||||
$('#frm').submit();
|
||||
$(this).dialog('close');
|
||||
},
|
||||
'No': function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch(e) {
|
||||
alert(e);
|
||||
}
|
||||
});
|
||||
} catch(e){ alert(e); }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue