Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 74: | Rivi 74: | ||
memo.obscodeParts = memo.obscode.split('_'); | memo.obscodeParts = memo.obscode.split('_'); | ||
memo.title = jQuery( this ).attr( 'data-title' ); if ( typeof memo.title == 'undefined' ) { memo.title = i18n[ memo.obscode ][ 'title' ][ memo.lang ]; } | memo.title = jQuery( this ).attr( 'data-title' ); if ( typeof memo.title == 'undefined' ) { memo.title = i18n[ memo.obscode ][ 'title' ][ memo.lang ]; } | ||
memo.startDate = jQuery( this ).attr( 'data-start-date' ); | memo.startDate = jQuery( this ).attr( 'data-start-date' ); | ||
console.log( memo.startDate ); | |||
if ( typeof memo.startDate == 'undefined' && typeof jQuery( this ).attr( 'data-start-year' ) != 'undefined' ) { | if ( typeof memo.startDate == 'undefined' && typeof jQuery( this ).attr( 'data-start-year' ) != 'undefined' ) { | ||
memo.startDate = jQuery( this ).attr( 'data-start-year' ) + '-01-01'; | memo.startDate = jQuery( this ).attr( 'data-start-year' ) + '-01-01'; | ||
| Rivi 80: | Rivi 82: | ||
memo.startDate = '1800-01-01'; | memo.startDate = '1800-01-01'; | ||
} | } | ||
memo.service = jQuery( this ).attr( 'data-coo311-service_code' ); | memo.service = jQuery( this ).attr( 'data-coo311-service_code' ); | ||
memo.graphType = jQuery( this ).attr( 'data-graph-type' ); | memo.graphType = jQuery( this ).attr( 'data-graph-type' ); | ||


