2014-03-12 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_plugin.php, include/javascript/pandora_modules.js: fixed the automagic deletion of macros when load a component. Incident: #654 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9565 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
376e5a4f67
commit
957631c8c2
|
@ -1,3 +1,11 @@
|
|||
2014-03-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor_plugin.php,
|
||||
include/javascript/pandora_modules.js: fixed the automagic deletion
|
||||
of macros when load a component.
|
||||
|
||||
Incident: #654
|
||||
|
||||
2014-03-11 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php: Change the unknown mode
|
||||
|
|
|
@ -87,13 +87,14 @@ if (!empty($macros)) {
|
|||
$data[1] = html_print_input_text($m['macro'], $m['value'], '', 100, 255, true);
|
||||
$table_simple->colspan['macro'.$m['macro']][1] = 3;
|
||||
$table_simple->rowclass['macro'.$m['macro']] = 'macro_field';
|
||||
|
||||
|
||||
push_table_simple ($data, 'macro'.$m['macro']);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
var load_module_component = false;
|
||||
function changePluginSelect() {
|
||||
jQuery.post ("ajax.php",
|
||||
{"page" : "godmode/servers/plugin",
|
||||
|
@ -107,5 +108,10 @@ function changePluginSelect() {
|
|||
|
||||
load_plugin_macros_fields('simple-macro');
|
||||
forced_title_callback();
|
||||
|
||||
//For to avoid the deletion of macros in the code
|
||||
//$("#network_component").change (function () {
|
||||
//In the file pandora_modules.js
|
||||
load_module_component = true;
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -224,7 +224,7 @@ function configure_modules_form () {
|
|||
});
|
||||
|
||||
network_component_group_change_event();
|
||||
|
||||
|
||||
$("#network_component").change (function () {
|
||||
if (this.value == 0)
|
||||
return;
|
||||
|
@ -327,8 +327,11 @@ function configure_modules_form () {
|
|||
}
|
||||
}
|
||||
|
||||
// Delete macro fields
|
||||
$('.macro_field').remove();
|
||||
if (!load_module_component) {
|
||||
// Delete macro fields
|
||||
$('.macro_field').remove();
|
||||
}
|
||||
load_module_component = false;
|
||||
|
||||
$('#hidden-macros').val('');
|
||||
|
||||
|
|
Loading…
Reference in New Issue