Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 44: | Rivi 44: | ||
//memo.widgetEl.height( memo.height ); | //memo.widgetEl.height( memo.height ); | ||
memo.siteid = jQuery( this ).attr( 'data-jw-siteid' ); | memo.siteid = jQuery( this ).attr( 'data-jw-siteid' ); | ||
memo.obscode = jQuery( this ).attr( 'data-jw-obscode' ); | memo.obscode = jQuery( this ).attr( 'data-jw-obscode' ); | ||
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.startyear = jQuery( this ).attr( 'data-start-year' ); if ( typeof memo.startyear == 'undefined' ) { memo.startyear = '1900'; } | memo.startyear = jQuery( this ).attr( 'data-start-year' ); if ( typeof memo.startyear == 'undefined' ) { memo.startyear = '1900'; } | ||
memo.service = jQuery( this ).attr( 'data-coo311-service_code' ); | memo.service = jQuery( this ).attr( 'data-coo311-service_code' ); | ||
| Rivi 71: | Rivi 72: | ||
// add title | // add title | ||
memo.headerEl.append( '<div class="obscharttitle" style=" | memo.headerEl.append( '<div class="obscharttitle" style="float: left;"></div>' ); | ||
memo.titleEl = jQuery( this ).find( '.obscharttitle' ); | memo.titleEl = jQuery( this ).find( '.obscharttitle' ); | ||
| Rivi 537: | Rivi 538: | ||
} | } | ||
memo.titleEl.html( | memo.titleEl.html( memo.title ); | ||
if ( typeof i18n[ memo.obscode ].changes != 'undefined' ) { | if ( typeof i18n[ memo.obscode ].changes != 'undefined' ) { | ||
if ( typeof typeof i18n[ memo.obscode ].changes[ memo.lang ] != 'undefined' ) { | if ( typeof typeof i18n[ memo.obscode ].changes[ memo.lang ] != 'undefined' ) { | ||


