Fix period field when open simple value and module graph - #15

This commit is contained in:
enriquecd 2017-02-09 17:55:46 +01:00
parent 47338f240f
commit 9fd08e8728
1 changed files with 4 additions and 4 deletions

View File

@ -1109,13 +1109,12 @@ function loadFieldsFromDB(item) {
} }
}); });
if (data.type == 6 || data.type == 7 || data.type == 8) {
$("#period_row").css('display', ''); if (data.type == 6 || data.type == 7 || data.type == 8 || data.type == 1) {
$("#period_row." + item).css('display', ''); $("#period_row." + item).css('display', '');
} }
else if (data.type == 2) { else if (data.type == 2) {
$("#period_row").css('display', 'none');
$("#period_row." + item).css('display', 'none'); $("#period_row." + item).css('display', 'none');
} }
@ -1265,7 +1264,7 @@ function hiddenFields(item) {
$("#percentile_item_row_4." + item).css('display', ''); $("#percentile_item_row_4." + item).css('display', '');
$("#period_row").css('display', 'none'); $("#period_row").css('display', 'none');
$("#period_row." + item).css('display', 'none'); $("#period_row." + item).css('display', '');
$("#size_row").css('display', 'none'); $("#size_row").css('display', 'none');
$("#size_row." + item).css('display', ''); $("#size_row." + item).css('display', '');
@ -3087,6 +3086,7 @@ function click_button_toolbox(id) {
case 'simple_value': case 'simple_value':
toolbuttonActive = creationItem = 'simple_value'; toolbuttonActive = creationItem = 'simple_value';
toggle_item_palette(); toggle_item_palette();
$("#period_row." + id).css('display', 'none');
break; break;
case 'label': case 'label':
toolbuttonActive = creationItem = 'label'; toolbuttonActive = creationItem = 'label';