fixed styles

This commit is contained in:
daniel 2023-03-31 08:45:54 +02:00
parent a0828ac25c
commit d6a1155dbb
2 changed files with 32 additions and 15 deletions

View File

@ -39,7 +39,6 @@ if (!empty($news)) {
// Prints news dialog template
echo '<div id="news_dialog" class="invisible">';
echo '<div class="parent_new_dialog_tmplt">';
echo '<span id="new_text"></span>';
echo '<span id="new_author"></span>';
@ -48,14 +47,22 @@ echo '<div id="news_dialog" class="invisible">';
echo '<div id="div_btn_new_dialog">';
echo '<div class="float-right w20p">';
html_print_submit_button('Ok', 'hide-news-help', false, 'class="ui-button-dialog ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok w100px";"');
html_print_submit_button(
'Ok',
'hide-news-help',
false,
[
'mode' => 'ui-widget ok mini',
'icon' => 'wand',
]
);
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
ui_require_javascript_file('encode_decode_base64');
?>
ui_require_javascript_file('encode_decode_base64');
?>
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
@ -82,22 +89,22 @@ $(document).ready (function () {
width: 630,
title: news[inew].subject,
overlay: {
opacity: 0.5,
background: "black"
}
opacity: 0.5,
background: "black"
}
});
$('.ui-dialog-titlebar-close').hide();
}
}
$("#submit-hide-news-help").click (function () {
$("#button-hide-news-help").click (function () {
$("#news_dialog" ).dialog('close');
inew++;
show_new ();
show_new();
});
show_new ();
show_new();
}
});

View File

@ -289,7 +289,7 @@ if ((isset($_GET['form_add'])) || (isset($_GET['form_edit']))) {
'text',
25,
100,
$text,
io_safe_output($text),
'',
true,
'w100p'
@ -442,9 +442,19 @@ ui_require_javascript_file('pandora');
dateFormat: "<?php echo DATE_FORMAT_JS; ?>",
changeMonth: true,
changeYear: true,
showAnim: "slideDown"});
showAnim: "slideDown"}
);
defineTinyMCE({"elements": "textarea_text",});
var added_config = {
"elements":"textarea_text",
"plugins": "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
"theme_advanced_buttons1": "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
"theme_advanced_buttons2": "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
"valid_children": "+body[style]",
"width": "90%",
}
defineTinyMCE(added_config);
$("#checkbox-expire").click(function() {
check_expire();