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