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:
parent
a91f0be558
commit
af3f18750e
|
@ -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>
|
||||
|
||||
* include/functions_html.php: Deleted problematic name change
|
||||
|
|
|
@ -411,7 +411,7 @@ $(document).ready (function () {
|
|||
|
||||
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 {
|
||||
alert("<?php echo __("Error, The field name and name in module_name in data configuration are difrerent.");?>");
|
||||
return false;
|
||||
|
@ -420,6 +420,23 @@ $(document).ready (function () {
|
|||
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue