Added Borja line to fix module graph period in visual console with non-administrator users
This commit is contained in:
parent
1b262808f2
commit
2737b6567a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue