10324 fixed modal in filter title
This commit is contained in:
parent
e76d8606dc
commit
4917b40d10
|
@ -7129,7 +7129,10 @@ function ui_print_fav_menu($id_element, $url, $label, $section)
|
|||
base64_encode(json_encode($config_fav_menu)),
|
||||
'',
|
||||
true,
|
||||
['onclick' => 'favMenuAction(this)']
|
||||
[
|
||||
'onclick' => 'favMenuAction(this)',
|
||||
'class' => (($fav !== false) ? 'active' : ''),
|
||||
]
|
||||
);
|
||||
$output .= '</span>';
|
||||
$output .= '<div id="dialog-fav-menu">';
|
||||
|
|
|
@ -837,12 +837,7 @@ function unblockSubmit(button) {
|
|||
|
||||
function favMenuAction(e) {
|
||||
var data = JSON.parse(atob(e.value));
|
||||
if (
|
||||
data.label === "" &&
|
||||
$(e)
|
||||
.attr("src")
|
||||
.endsWith("star.png") === false
|
||||
) {
|
||||
if (data.label === "" && $(e).hasClass("active") === false) {
|
||||
$("#dialog-fav-menu").dialog({
|
||||
title: "Please choose a title",
|
||||
width: 330,
|
||||
|
@ -877,8 +872,10 @@ function favMenuAction(e) {
|
|||
if (res.success) {
|
||||
if (res.action === "create") {
|
||||
$("#image-fav-menu-action1").attr("src", "images/star_fav_menu.png");
|
||||
$("#image-fav-menu-action1").addClass("active");
|
||||
} else {
|
||||
$("#image-fav-menu-action1").attr("src", "images/star_dark.png");
|
||||
$("#image-fav-menu-action1").removeClass("active");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue