mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
fixed error with modal cluster view
This commit is contained in:
parent
cb3bf7fed0
commit
733087f704
pandora_console/include
@ -2840,13 +2840,7 @@ class NetworkMap
|
||||
*/
|
||||
public function loadSimpleInterface()
|
||||
{
|
||||
$output = '<div id="open_version_dialog" class="invisible">';
|
||||
$output .= __(
|
||||
'In the Open version of %s can not be edited nodes or map',
|
||||
get_product_name()
|
||||
);
|
||||
$output .= '</div>';
|
||||
|
||||
$output = '';
|
||||
$output .= '<div id="dialog_node_edit" class="invisible" title="';
|
||||
$output .= __('Edit node').'">';
|
||||
$output .= '<div class="left w100p">';
|
||||
@ -2896,6 +2890,12 @@ class NetworkMap
|
||||
$id = 'dialog_node_edit';
|
||||
if (!enterprise_installed()) {
|
||||
$id = 'open_version_dialog';
|
||||
$output = '<div id="open_version" style="display: none" title="'.__('Warning').'">';
|
||||
$output .= '<div class="center mrgn_top_20px w90p font_13px">'.__(
|
||||
'In the Open version of %s can not be edited nodes or map',
|
||||
get_product_name()
|
||||
);
|
||||
$output .= '</div></div>';
|
||||
}
|
||||
|
||||
$output .= '<div id="'.$id.'" class="invisible" title="';
|
||||
|
@ -879,6 +879,7 @@ function edit_node(data_node, dblClick) {
|
||||
); // It doesn't eval the possible XSS so it's ok
|
||||
$("#dialog_node_edit").dialog("open");
|
||||
$("#open_version_dialog").dialog();
|
||||
$("#open_version").dialog();
|
||||
|
||||
if (node_selected.id_agent == undefined || node_selected.type == 3) {
|
||||
//Fictional node
|
||||
|
Loading…
x
Reference in New Issue
Block a user