Skip to content

Commit 1202e7a

Browse files
authored
Merge pull request #445 from Neriderc/dev
Resolve issue with JPG quality setting
2 parents e29c84f + 925f638 commit 1202e7a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

resources/javascript/MainPage/SettingsGroup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export class SettingsGroup {
55
}
66

77
linkModifierElement(modifierId, value, customCondition) {
8-
let el = document.getElementById(modifierId);
98
let element = document.querySelector('#' + modifierId);
109
element.addEventListener('change', () => {this.runEventListener(modifierId, value, customCondition)});
1110
}

resources/javascript/gvexport.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ function loadSettings(data, isNamedSetting = false) {
662662
el.value = settings[key];
663663
}
664664
}
665+
666+
// Update show/hide of JPG quality option
667+
Form.showHideMatchDropdown('output_type', 'server_pdf_subgroup', 'pdf|svg|jpg')
665668
});
666669
Form.showHideMatchCheckbox('mark_not_related', 'mark_related_subgroup');
667670
Form.showHideMatchCheckbox('show_birthdate', 'birth_date_subgroup');

resources/views/page.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ $usegraphviz = $vars['graphviz_bin'] != "";
408408
new module.SettingsGroup('subgroup_border_custom', 'border_col_type', '<?= Settings::OPTION_BORDER_CUSTOM_COLOUR;?>');
409409
new module.SettingsGroup('subgroup_border_vitals', 'border_col_type', '<?= Settings::OPTION_BORDER_VITAL_COLOUR;?>');
410410
new module.SettingsGroup('subgroup_border_age', 'border_col_type', '<?= Settings::OPTION_BORDER_AGE_COLOUR;?>');
411-
new module.SettingsGroup('server_pdf_subgroup', 'output_type', 'pdf|svg', () => {return graphvizAvailable});
411+
new module.SettingsGroup('server_pdf_subgroup', 'output_type', 'pdf|svg|jpg', () => {return graphvizAvailable});
412412
new module.SettingsGroup('subgroup_stripe_vitals', 'stripe_col_type', '<?= Settings::OPTION_STRIPE_VITAL_COLOUR;?>');
413413
new module.SettingsGroup('subgroup_stripe_age', 'stripe_col_type', '<?= Settings::OPTION_STRIPE_AGE_COLOUR;?>');
414414
})

0 commit comments

Comments
 (0)