Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Jan 11, 2024
2 parents 10e8dd3 + dd44980 commit cdc6fde
Show file tree
Hide file tree
Showing 15 changed files with 828 additions and 242 deletions.
2 changes: 1 addition & 1 deletion css/report-filters.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
padding-right: 24px;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box
-webkit-box-sizing:border-box;
height: auto;
}

Expand Down
45 changes: 45 additions & 0 deletions css/theme-bootstrap-3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/theme-bootstrap-3.css.map

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions css/theme-generic.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/theme-generic.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/controls/speciesmap_controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ var control_speciesmap_addcontrols;
$('#' + indiciaData.control_speciesmap_opts.messageId).empty().append(indiciaData.lang.speciesMap.AddDataMessage);
$('#' + indiciaData.control_speciesmap_opts.buttonsId).each(function () {window.scroll(0, $(this).offset().top); });
showButtons(['cancel', 'finish']);
if (typeof indiciaData.control_speciesmap_opts.sampleMethodId !== "undefined" && indiciaData.control_speciesmap_opts.sampleMethodId !== '') {
$('<input type="hidden" name="sc:' + gridIdx + '::sample:sample_method_id" value="' + indiciaData.control_speciesmap_opts.sampleMethodId + '" />')
if (typeof indiciaData.control_speciesmap_opts.sample_method_id !== "undefined" && indiciaData.control_speciesmap_opts.sample_method_id !== '') {
$('<input type="hidden" name="sc:' + gridIdx + '::sample:sample_method_id" value="' + indiciaData.control_speciesmap_opts.sample_method_id + '" />')
.appendTo(subsampleBlock);
sampleControlsDiv = $('#' + indiciaData.control_speciesmap_opts.id + '-subsample-ctrls')
.clone(true, true)
Expand Down
14 changes: 9 additions & 5 deletions js/indicia.datacomponents/idc.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,18 +746,22 @@
var key = entity === 'parent_event' ? 'parent_attributes' : 'attributes';
// Tolerate sample or event for entity parameter.
entity = $.inArray(entity, ['sample', 'event', 'parent_event']) > -1 ? 'event' : 'occurrence';
// When requesting an event attribute, allow the parent event attribute
// value to be used if necessary.
if (entity === 'event' && key === 'attributes' && !doc[entity][key] && doc[entity]['parent_attributes']) {
key = 'parent_attributes';
}
if (doc[entity] && doc[entity][key]) {
$.each(doc[entity][key], function eachAttr() {
if (this.id === params[1]) {
output.push(this.value);
}
});
}
// When requesting an event attribute, allow the parent event attribute
// value to be used if necessary.
if (doc[entity] && output.length === 0 && entity === 'event' && key === 'attributes' && doc[entity]['parent_attributes']) {
$.each(doc[entity]['parent_attributes'], function eachAttr() {
if (this.id === params[1]) {
output.push(this.value);
}
});
}
return output.join('; ');
},

Expand Down
Loading

0 comments on commit cdc6fde

Please sign in to comment.