diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 4926a215ca..ba1669da9f 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -510,6 +510,9 @@ function readFields() { values['process_simple_value'] = $("select[name=process_value]").val(); values['background'] = $("#background_image").val(); values['period'] = undefined != $("#hidden-period").val() ? $("#hidden-period").val() : $("#period").val(); + if (values['period'] == null) { + values['period'] = undefined != $("#hidden-period").val() ? $("#hidden-period").val() : $("#period_select").val(); + } values['width'] = $("input[name=width]").val(); values['height'] = $("input[name=height]").val(); values['parent'] = $("select[name=parent]").val(); @@ -563,14 +566,14 @@ function create_button_palette_callback() { var validate = true; switch (creationItem) { case 'box_item': - if (($("input[name='width_box']").val() == '')) { - alert('Undefined width'); - validate = false; - } - if (($("input[name='height_box']").val() == '')) { - alert('Undefined height'); - validate = false; - } + if (($("input[name='width_box']").val() == '')) { + alert('Undefined width'); + validate = false; + } + if (($("input[name='height_box']").val() == '')) { + alert('Undefined height'); + validate = false; + } break; case 'group_item': case 'static_graph': @@ -630,7 +633,7 @@ function create_button_palette_callback() { validate = false; } break; - case 'module_graph': + case 'module_graph': if (values['width_module_graph'] == '') { alert('Undefined width'); validate = false;