Solve the no X problem in modal dialogue (complete it).

Bug430-Eden2
Lan Hui 2023-08-12 21:29:49 +08:00
parent 90f8e7b835
commit 6a840566d2
3 changed files with 30 additions and 6 deletions

View File

@ -584,7 +584,11 @@ where course_group_members_table.Course_Group_id=$id");
<input type="hidden" name="groupid" value="'+id+'" > Enter Student ID to invite <input type="text" name="student_id">\n\
<input type="hidden" name="url" value="<?php echo $url; ?>"> <input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> </form>').dialog({
modal: true,
title:'Invite Students to Group',
title:'Invite students to group',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Invite': function () {
$('#frm').submit();
@ -613,7 +617,11 @@ where course_group_members_table.Course_Group_id=$id");
<input type="hidden" name="student_id" value="<?php echo $student_id; ?>" > \n\
<input type="hidden" name="url" value="<?php echo $url; ?>"> <input type="hidden" name="courseid" value="<?php echo $course_id; ?>"> </form>').dialog({
modal: true,
title:'Respond to Group Invite',
title:'Respond to group invitation',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Confirm': function () {
$('#frm').submit();
@ -651,6 +659,10 @@ where course_group_members_table.Course_Group_id=$id");
<input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
modal: true,
title:'Kick out '+student_id+'?',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Yes': function () {
$('#frm').submit();
@ -676,6 +688,10 @@ where course_group_members_table.Course_Group_id=$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();

View File

@ -44,6 +44,10 @@ include 'Header.php';
</form>`).dialog({
modal: true,
title:'Extend deadline',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Submit': function () {
$('#frm').submit();

View File

@ -442,6 +442,10 @@ where course_group_members_table.Course_Group_id=$id");
</form>`).dialog({
modal: true,
title: 'Mark submission',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Submit': function() {
$('#submit-form').submit();