Skip to content

Commit a543f93

Browse files
committed
remove modal messages
1 parent cc8190a commit a543f93

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

resources/templates/header.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
<button style="position: absolute; right: 10px; top: 10px;" class="btnClose"></button>
134134
</div>
135135
<div class="modalBody"></div>
136-
<div class="modalMessages"></div>
137136
<div class="modalButtons">
138137
<div class='buttonList messageButtons' style='display: none;'>
139138
<button class='btnOkay'>Okay</button>

webroot/css/modal.css

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,7 @@ span.modalTitle {
3030
font-size: 13pt;
3131
}
3232

33-
div.modalMessages {
34-
color: var(--color-text-failure);
35-
font-size: 11pt;
36-
}
37-
38-
div.modalMessages > * {
39-
margin-top: 7px;
40-
display: block;
41-
}
42-
43-
div.modalBody > * {
33+
div.modalBody>* {
4434
margin: 0;
4535
}
4636

webroot/js/modal.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
function openModal(title, link, message = "") {
1+
function openModal(title, link) {
22
$("span.modalTitle").html(title);
3-
$("div.modalMessages").html(message);
43
$.ajax({
54
url: link,
65
success: function (result) {

webroot/panel/groups.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@
186186
$errorHTML .= "<span>" . htmlentities($error) . "</span>";
187187
}
188188

189-
echo "openModal('Add New PI', '" .
190-
CONFIG["site"]["prefix"] . "/panel/modal/new_pi.php', '" . $errorHTML . "');";
189+
echo "openModal('Add New PI', '" . CONFIG["site"]["prefix"] . "/panel/modal/new_pi.php');";
191190
}
192191
?>
193192

0 commit comments

Comments
 (0)