mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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['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':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user