Archived reports
Selecting the value will change the page content
Select Year:
'+
'
'+
'{{#docs}}'+
'
'+
'{{/docs}}'+
'
'+
'
'
/* beautify preserve:end */
),
beforeRenderItems: function(e, data) {
// function to update the title of each doc
function updateTitle (category) {
switch (category) {
case 'annual':
return "Annual Report";
case 'proxy':
return "Proxy Statement";
// case 'online':
// return "Annual Report Online";
case 'tenk':
return "Form 10-K";
case 'tenq':
return "Form 10-Q";
}
}
$.each(data.items, function(idx, item) {
$.each(item.docs, function(idx, doc) {
// Make sure any local links open in the same window
var url = doc.docUrl.toLowerCase().split('.');
if (url[url.length - 1] != 'aspx') {
doc.blank = true;
}
// update the title of each doc
doc.newTitle = updateTitle(doc.docCategory);
});
});
}
});
$('.module-financial .module-financial_annual-archive').financials({
skip: 1,
reportTypes: ['Annual Report'],
itemContainer: '.module_container--content',
yearContainer: '#financialArchiveYear',
yearSelect: '#financialArchiveYear',
yearTemplate: '
{{year}} ',
itemNotFoundMessage: '
No annual reports available right now. Please check back later.
',
setMaxYear: true,
beforeRender: function(e, data) {
var $widget = $(e.target);
if ( $widget.financials('option','setMaxYear') && data.years.length > 1 ) {
data.years.splice(0,1);
$widget.financials('option', 'maxYear', data.years[0].year);
$widget.financials('option','setMaxYear', false);
$widget.financials('setYear', data.years[0].year);
} else if ( $widget.financials('option','setMaxYear') ) {
data.years.splice(0,1);
}
},
beforeRenderItems: function(e, data) {
var $widget = $(e.target);
if ( $($widget.financials('option','yearSelect')).is(':empty') && data.items.length ) {
data.items.splice(0, data.items.length);
}
// function to update the title of each doc
function updateTitle (category) {
switch (category) {
case 'annual':
return "Annual Report";
case 'proxy':
return "Proxy Statement";
// case 'online':
// return "Annual Report Online";
case 'tenk':
return "Form 10-K";
case 'tenq':
return "Form 10-Q";
}
}
$.each(data.items, function(idx, item) {
$.each(item.docs, function(idx, doc) {
// Make sure any local links open in the same window
var url = doc.docUrl.toLowerCase().split('.');
if (url[url.length - 1] != 'aspx') {
doc.blank = true;
}
// update the title of each doc
doc.newTitle = updateTitle(doc.docCategory);
});
});
},
itemTemplate: (
/* beautify preserve:start */
'
'+
'
'+
'
'+
'
'+
'
'+
'{{#docs}}'+
'
'+
'{{/docs}}'+
'
'+
'
'
/* beautify preserve:end */
),
itemsComplete: function(e){
if ( $(e.target).find('#annual-status').length ) {
$(e.target).find('#annual-status').text('Showing annual archive from year ' + $(e.target).find('#financialArchiveYear').val());
}
},
complete: function(e){
$(e.target).find('#financialArchiveYear option:selected').attr('selected', true);
q4Defaults.a11yAnnouncement('polite', 'annual-status', $(e.target).find('.module_options'), function(el){
$(el).text('Showing annual archive from year ' + $(e.target).find('#financialArchiveYear').val());
});
}
});