Policy capacity planning modules. JS errors
This commit is contained in:
parent
2d3f30974f
commit
06f9b2e093
|
@ -680,6 +680,8 @@ switch ($moduletype) {
|
||||||
1,
|
1,
|
||||||
];
|
];
|
||||||
include 'module_manager_editor_common.php';
|
include 'module_manager_editor_common.php';
|
||||||
|
ui_require_jquery_file('validate');
|
||||||
|
ui_require_javascript_file_enterprise('pandora_synthetic');
|
||||||
include 'module_manager_editor_prediction.php';
|
include 'module_manager_editor_prediction.php';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -862,6 +864,17 @@ ui_require_javascript_file('pandora_modules');
|
||||||
?>
|
?>
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
|
||||||
|
var textsToTranslate = {
|
||||||
|
"None": "<?php __('None'); ?>",
|
||||||
|
};
|
||||||
|
|
||||||
|
var icons = {
|
||||||
|
'load_icon': '<?php html_print_image('images/spinner.gif', false); ?>',
|
||||||
|
'error_icon': '<?php html_print_image('images/error_red.png', false); ?>',
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
var no_name_lang =`
|
var no_name_lang =`
|
||||||
<?php
|
<?php
|
||||||
echo ui_print_info_message(
|
echo ui_print_info_message(
|
||||||
|
|
|
@ -1387,7 +1387,7 @@ $table_advanced->data['made_enabled'][0] = html_print_checkbox_switch(
|
||||||
'made_enabled',
|
'made_enabled',
|
||||||
1,
|
1,
|
||||||
(bool) $made_enabled,
|
(bool) $made_enabled,
|
||||||
false,
|
true,
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
enterprise_include_once('include/functions_policies.php');
|
enterprise_include_once('include/functions_policies.php');
|
||||||
enterprise_include_once('godmode/agentes/module_manager_editor_prediction.php');
|
enterprise_include_once('godmode/agentes/module_manager_editor_prediction.php');
|
||||||
require_once 'include/functions_agents.php';
|
require_once 'include/functions_agents.php';
|
||||||
ui_require_jquery_file('validate');
|
|
||||||
|
|
||||||
$disabledBecauseInPolicy = false;
|
$disabledBecauseInPolicy = false;
|
||||||
$disabledTextBecauseInPolicy = '';
|
$disabledTextBecauseInPolicy = '';
|
||||||
|
@ -293,6 +292,7 @@ if ($netflow_module_form !== ENTERPRISE_NOT_HOOK) {
|
||||||
|
|
||||||
// Removed common useless parameter.
|
// Removed common useless parameter.
|
||||||
unset($table_advanced->data[3]);
|
unset($table_advanced->data[3]);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
@ -303,6 +303,7 @@ unset($table_advanced->data[3]);
|
||||||
$selected,
|
$selected,
|
||||||
$is_netflow,
|
$is_netflow,
|
||||||
$ops,
|
$ops,
|
||||||
|
false,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue