2011-05-11 Vanessa Gil <vanessa.gil@artica.es>

* godmode/agentes/module_manager_editor.php
	include/javascript/pandora_modules.js: Fixed bug: Is possible to create a module plugin without module associated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2011-05-11 13:53:24 +00:00
parent c05233d7ac
commit 5e9bbc1be5
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-05-11 Vanessa Gil <vanessa.gil@artica.es>
* godmode/agentes/module_manager_editor.php
include/javascript/pandora_modules.js: Fixed bug: Is possible to create a module plugin without module associated.
2011-05-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_io.php

View File

@ -362,6 +362,7 @@ var no_name_lang = "<?php echo __('No module name provided') ?>";
var no_target_lang = "<?php echo __('No target IP provided') ?>";
var no_oid_lang = "<?php echo __('No SNMP OID provided') ?>";
var no_prediction_module_lang = "<?php echo __('No module to predict') ?>";
var no_plugin_lang = "<?php echo __('No plug-in provided') ?>";
$(document).ready (function () {
configure_modules_form ();

View File

@ -303,6 +303,12 @@ function configure_modules_form () {
return false;
}
if ($("#id_plugin").attr ("value") == 0) {
$("#id_plugin").focus ();
$("#message").showMessage (no_plugin_lang);
return false;
}
moduletype = $("#hidden-moduletype").val ();
if (moduletype == 5) {
if ($("#prediction_module").val () == null) {