#10526 tree view modal show on create agent

This commit is contained in:
Jonathan 2023-04-11 14:57:53 +02:00
parent 57c6788a19
commit 2164e0d9a2
3 changed files with 9 additions and 4 deletions

View File

@ -1184,6 +1184,11 @@ html_print_div(
}
});
var show_dialog_create = "<?php echo get_parameter('show_dialog_create', 0); ?>";
if (show_dialog_create !== 0){
$('#button-create_module').click();
}
});

View File

@ -944,12 +944,12 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
true
);
} else {
$buttons_act .= '<a target=_blank href="'.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.$ent.'&tab=module">';
$buttons_act .= '<a target=_blank href="'.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.$ent.'&tab=module&show_dialog_create=1">';
$buttons_act .= html_print_submit_button(
__('Go to module creation'),
'upd_button',
false,
['class' => 'secondary mini'],
['class' => 'secondary mini no_decoration'],
true
);
@ -958,7 +958,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
__('Go to agent edition'),
'upd_button',
false,
['class' => 'secondary mini'],
['class' => 'secondary mini no_decoration'],
true
);
}

View File

@ -241,7 +241,7 @@ table tbody tr td h4 {
a {
color: #3f3f3f;
text-decoration: none;
text-decoration: none !important;
}
a:hover {