Merge branch '1023-module-graph-in-visual-console-with-non-administrator-user-dev' into 'develop'

Added Borja line to fix module graph period in visual console with non-administrator users

See merge request !609
This commit is contained in:
vgilc 2017-07-13 11:55:23 +02:00
commit 9e3fa2d310

View File

@ -510,6 +510,9 @@ function readFields() {
values['process_simple_value'] = $("select[name=process_value]").val(); values['process_simple_value'] = $("select[name=process_value]").val();
values['background'] = $("#background_image").val(); values['background'] = $("#background_image").val();
values['period'] = undefined != $("#hidden-period").val() ? $("#hidden-period").val() : $("#period").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['width'] = $("input[name=width]").val();
values['height'] = $("input[name=height]").val(); values['height'] = $("input[name=height]").val();
values['parent'] = $("select[name=parent]").val(); values['parent'] = $("select[name=parent]").val();
@ -563,14 +566,14 @@ function create_button_palette_callback() {
var validate = true; var validate = true;
switch (creationItem) { switch (creationItem) {
case 'box_item': case 'box_item':
if (($("input[name='width_box']").val() == '')) { if (($("input[name='width_box']").val() == '')) {
alert('Undefined width'); alert('Undefined width');
validate = false; validate = false;
} }
if (($("input[name='height_box']").val() == '')) { if (($("input[name='height_box']").val() == '')) {
alert('Undefined height'); alert('Undefined height');
validate = false; validate = false;
} }
break; break;
case 'group_item': case 'group_item':
case 'static_graph': case 'static_graph':