From 90f8e7b83500064b41dff13429d4986f105ab716 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Sat, 12 Aug 2023 21:25:16 +0800 Subject: [PATCH] Solve the no X problem in modal dialogue. --- Course.php | 5 +++++ Header.php | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/Course.php b/Course.php index 57562fd..9eb5f4a 100644 --- a/Course.php +++ b/Course.php @@ -555,6 +555,10 @@ where course_group_members_table.Course_Group_id=$id"); ').dialog({ modal: true, title:'Create a group', + close: function () { + var closeBtn = $('.ui-dialog-titlebar-close'); + closeBtn.html(''); + }, buttons: { 'Create': function () { $('#frm').submit(); @@ -697,6 +701,7 @@ where course_group_members_table.Course_Group_id=$id"); }) }) + diff --git a/Header.php b/Header.php index 348105d..bb662a9 100644 --- a/Header.php +++ b/Header.php @@ -90,6 +90,14 @@ if (mysqli_connect_errno()) { } + .ui-dialog-titlebar-close::before { + content: "X"; + position: absolute; + top: 1px; + left: 3px; + line-height: 1rem; + } + #footer{ position:fixed; bottom:0;