mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-12 16:35:05 +02:00
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
efa34633e1
commit
6ccbc87cbb
@ -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>
|
2014-03-11 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_graph.php: Change the unknown mode
|
* include/functions_graph.php: Change the unknown mode
|
||||||
|
@ -94,6 +94,7 @@ if (!empty($macros)) {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
var load_module_component = false;
|
||||||
function changePluginSelect() {
|
function changePluginSelect() {
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post ("ajax.php",
|
||||||
{"page" : "godmode/servers/plugin",
|
{"page" : "godmode/servers/plugin",
|
||||||
@ -107,5 +108,10 @@ function changePluginSelect() {
|
|||||||
|
|
||||||
load_plugin_macros_fields('simple-macro');
|
load_plugin_macros_fields('simple-macro');
|
||||||
forced_title_callback();
|
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>
|
</script>
|
||||||
|
@ -327,8 +327,11 @@ function configure_modules_form () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!load_module_component) {
|
||||||
// Delete macro fields
|
// Delete macro fields
|
||||||
$('.macro_field').remove();
|
$('.macro_field').remove();
|
||||||
|
}
|
||||||
|
load_module_component = false;
|
||||||
|
|
||||||
$('#hidden-macros').val('');
|
$('#hidden-macros').val('');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user