Skip to content

Commit 03888fa

Browse files
lgmusni
authored andcommitted
fix action menu links
1 parent da197d1 commit 03888fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

root/thruk/javascript/thruk-3.24.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6224,6 +6224,7 @@ function action_menu_icon(iconUrl, options) {
62246224
function set_action_menu_link_action(link, menu_entry, options) {
62256225
var href = replace_macros(menu_entry.action, undefined, options);
62266226
link.href = href;
6227+
link.className = "link";
62276228
link.dataset["url"] = href; // href is normalized for ex. in chrome which lowercases and urlescapes the link
62286229
if(menu_entry.target) { link.target = menu_entry.target; }
62296230
}
@@ -6356,8 +6357,6 @@ function actionGetMenuItem(el, id, backend, host, service) {
63566357
var link = document.createElement('a');
63576358
if(el.disabled) {
63586359
item.className = 'disabled no-hover';
6359-
} else {
6360-
item.className = 'clickable';
63616360
}
63626361
if(el.disabled || el.menu || !el.action) {
63636362
jQuery(link).off("click").on("click", function(e) {

0 commit comments

Comments
 (0)