Fixed the show plugin parameters field into the policy module form.
This commit is contained in:
parent
aa7bd77757
commit
8348c9f5fc
|
@ -105,7 +105,16 @@ if (!empty($macros)) {
|
|||
?>
|
||||
<script type="text/javascript">
|
||||
function changePluginSelect() {
|
||||
if (flag_load_plugin_component) {
|
||||
flag_load_plugin_component = false;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
load_plugin_description($("#id_plugin").val());
|
||||
|
||||
load_plugin_macros_fields('simple-macro');
|
||||
|
||||
forced_title_callback();
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -225,6 +225,7 @@ function configure_modules_form () {
|
|||
|
||||
network_component_group_change_event();
|
||||
|
||||
flag_load_plugin_component = false;
|
||||
$("#network_component").change (function () {
|
||||
if (this.value == 0)
|
||||
return;
|
||||
|
@ -237,6 +238,8 @@ function configure_modules_form () {
|
|||
"id_module_component" : this.value
|
||||
},
|
||||
function (data, status) {
|
||||
flag_load_plugin_component = true;
|
||||
|
||||
$("#text-name").attr ("value", js_html_entity_decode (data["name"]));
|
||||
$("#textarea_description").attr ("value", js_html_entity_decode (data["description"]));
|
||||
$("#id_module_type").val(data["type"]);
|
||||
|
@ -360,10 +363,6 @@ function configure_modules_form () {
|
|||
}
|
||||
}
|
||||
|
||||
if (data["id_modulo"] == 4) {
|
||||
changePluginSelect();
|
||||
}
|
||||
|
||||
if (data["throw_unknown_events"])
|
||||
$("input[name='throw_unknown_events']").check();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue