#10324 added star in menu
This commit is contained in:
parent
3dee690e42
commit
e76d8606dc
|
@ -7125,7 +7125,7 @@ function ui_print_fav_menu($id_element, $url, $label, $section)
|
|||
$output = '<span class="fav-menu">';
|
||||
$output .= html_print_input_image(
|
||||
'fav-menu-action',
|
||||
(($fav !== false) ? 'images/star.png' : 'images/star_dark.png'),
|
||||
(($fav !== false) ? 'images/star_fav_menu.png' : 'images/star_dark.png'),
|
||||
base64_encode(json_encode($config_fav_menu)),
|
||||
'',
|
||||
true,
|
||||
|
|
|
@ -876,7 +876,7 @@ function favMenuAction(e) {
|
|||
success: function(res) {
|
||||
if (res.success) {
|
||||
if (res.action === "create") {
|
||||
$("#image-fav-menu-action1").attr("src", "images/star.png");
|
||||
$("#image-fav-menu-action1").attr("src", "images/star_fav_menu.png");
|
||||
} else {
|
||||
$("#image-fav-menu-action1").attr("src", "images/star_dark.png");
|
||||
}
|
||||
|
|
|
@ -324,3 +324,6 @@ div.ui-tooltip.ui-corner-all.ui-widget-shadow.ui-widget.ui-widget-content.uitool
|
|||
margin: 0px;
|
||||
padding-top: 40px;
|
||||
}
|
||||
.fav-menu input {
|
||||
padding: 0px;
|
||||
}
|
||||
|
|
|
@ -149,6 +149,9 @@ li.sub_subMenu.selected {
|
|||
#icon_oper-events {
|
||||
background-image: url(../../images/menu/op_events.menu_gray.png);
|
||||
}
|
||||
#icon_fav-menu {
|
||||
background-image: url(../../images/menu/fav_menu_gray.png);
|
||||
}
|
||||
|
||||
/* users */
|
||||
#icon_oper-users {
|
||||
|
@ -336,6 +339,9 @@ ul li {
|
|||
.selected#icon_oper-users {
|
||||
background-image: url(../../images/menu/op_workspace.menu_white.png);
|
||||
}
|
||||
.selected#icon_fav-menu {
|
||||
background-image: url(../../images/menu/fav_menu_white.png);
|
||||
}
|
||||
.selected#icon_oper-reporting {
|
||||
background-image: url(../../images/menu/op_reporting.menu_white.png);
|
||||
}
|
||||
|
|
|
@ -470,7 +470,7 @@ $favorite_menu = db_get_all_rows_sql(
|
|||
$config['id_user']
|
||||
)
|
||||
);
|
||||
// Favorite
|
||||
// Favorite.
|
||||
if ($favorite_menu !== false) {
|
||||
$menu_operation['favorite']['text'] = __('Favorite');
|
||||
$menu_operation['favorite']['id'] = 'fav-menu';
|
||||
|
|
Loading…
Reference in New Issue