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
|
||||
|
|
|
@ -94,6 +94,7 @@ if (!empty($macros)) {
|
|||
|
||||
?>
|
||||
<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>
|
||||
|
|
|
@ -327,8 +327,11 @@ function configure_modules_form () {
|
|||
}
|
||||
}
|
||||
|
||||
if (!load_module_component) {
|
||||
// Delete macro fields
|
||||
$('.macro_field').remove();
|
||||
}
|
||||
load_module_component = false;
|
||||
|
||||
$('#hidden-macros').val('');
|
||||
|
||||
|
|
Loading…
Reference in New Issue