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