File tree Expand file tree Collapse file tree 4 files changed +3
-16
lines changed
Expand file tree Collapse file tree 4 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments