Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 58: | Rivi 58: | ||
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' ); | ||
− | if ( typeof memo.startDate == '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'; | ||
} else { | } else { |