Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 325: | Rivi 325: | ||
memo.showTrend = ( jQuery( this ).attr( 'data-show-trend' ) != 'false' ); | memo.showTrend = ( jQuery( this ).attr( 'data-show-trend' ) != 'false' ); | ||
− | memo.trendType = jQuery( this ).attr( 'data-trend-type' ); if (typeof memo.trendType == 'undefined') { memo.trendType = i18n[memo.obscode]['trend']['type']; } | + | memo.trendType = jQuery( this ).attr( 'data-trend-type' ); if (typeof memo.trendType == 'undefined') { memo.trendType = i18n[memo.obscode]['trend']['type']; } |
− | |||
− | |||
memo.jw = new jwApi(); | memo.jw = new jwApi(); | ||
Rivi 591: | Rivi 589: | ||
memo.titleEl.html( memo.title ); | memo.titleEl.html( memo.title ); | ||
+ | |||
+ | memo.titleEl.append( ' <button style="padding: 0 0.25em; font-size: 13px; margin-bottom: 3px;" type="button" class="btn btn-secondary btn-info" data-toggle="tooltip" data-placement="top" title="' + 'asdfsadf' + '">' + 'X' + '</button>' ); | ||
+ | |||
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' ) { | ||
Rivi 596: | Rivi 597: | ||
jQuery( '[data-toggle="tooltip"]' ).tooltip(); | jQuery( '[data-toggle="tooltip"]' ).tooltip(); | ||
} | } | ||
− | } | + | } |
− | |||
− | |||
} | } | ||