2011-10-25 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/module_manager_editor.php: Fixed keep_alive
	modules creation bug hidding the configuration data textarea 



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-10-25 09:22:29 +00:00
parent a91f0be558
commit af3f18750e
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-10-25 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/module_manager_editor.php: Fixed keep_alive
modules creation bug hidding the configuration data textarea
2011-10-25 Sergio Martin <sergio.martin@artica.es> 2011-10-25 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Deleted problematic name change * include/functions_html.php: Deleted problematic name change

View File

@ -411,7 +411,7 @@ $(document).ready (function () {
regexp_name = new RegExp('module_name\\s*' + name+"\n"); regexp_name = new RegExp('module_name\\s*' + name+"\n");
if (remote_config.match(regexp_name)) return true; if (remote_config.match(regexp_name) || $("#id_module_type").val()==100 || $("#hidden-id_module_type_hidden").val()==100) return true;
else { else {
alert("<?php echo __("Error, The field name and name in module_name in data configuration are difrerent.");?>"); alert("<?php echo __("Error, The field name and name in module_name in data configuration are difrerent.");?>");
return false; return false;
@ -420,6 +420,23 @@ $(document).ready (function () {
return true; return true;
}); });
function checkKeepaliveModule() {
// keepalive modules have id = 100
if($("#id_module_type").val()==100 || $("#hidden-id_module_type_hidden").val()==100) {
$("#simple-configuration_data").hide();
}
else {
$("#simple-configuration_data").show();
}
}
checkKeepaliveModule();
$("#id_module_type").change (function () {
checkKeepaliveModule();
});
}); });
/* ]]> */ /* ]]> */
</script> </script>