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="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({ <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 () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: { buttons: {
'Invite': function () { 'Invite': function () {
$('#frm').submit(); $('#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="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({ <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:'Respond to Group Invite', title:'Respond to group invitation',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: { buttons: {
'Confirm': function () { 'Confirm': function () {
$('#frm').submit(); $('#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({ <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+'?',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: { buttons: {
'Yes': function () { 'Yes': function () {
$('#frm').submit(); $('#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({ <input type="hidden" name="url" value="<?php echo $url; ?>"></form>').dialog({
modal: true, modal: true,
title:'Delete this group?', title:'Delete this group?',
close: function () {
var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: { buttons: {
'Yes': function () { 'Yes': function () {
$('#frm').submit(); $('#frm').submit();

View File

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

View File

@ -440,10 +440,14 @@ where course_group_members_table.Course_Group_id=$id");
<input type="hidden" name="labid" value="<?php echo $course_id; ?>"> <input type="hidden" name="labid" value="<?php echo $course_id; ?>">
<input type="hidden" name="header" value="<?php echo $header; ?>"> <input type="hidden" name="header" value="<?php echo $header; ?>">
</form>`).dialog({ </form>`).dialog({
modal: true, modal: true,
title: 'Mark submission', title: 'Mark submission',
buttons: { close: function () {
'Submit': function() { var closeBtn = $('.ui-dialog-titlebar-close');
closeBtn.html('');
},
buttons: {
'Submit': function() {
$('#submit-form').submit(); $('#submit-form').submit();
$(this).dialog('close'); $(this).dialog('close');
}, },