Ero sivun ”Widget:JwObsCharts” versioiden välillä
Järvi-meriwikistä
Rivi 496: | Rivi 496: | ||
} | } | ||
− | memo.titleEl.html( i18n[ memo.obscode ].title[ memo.lang ] ); | + | memo.titleEl.html( i18n[ memo.obscode ].title[ memo.lang ] ); |
− | + | if ( typeof i18n[ memo.obscode ].changes != 'undefined' ) { | |
− | + | if ( typeof typeof i18n[ memo.obscode ].changes[ memo.lang ] != 'undefined' ) { | |
− | + | 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="' + i18n[ memo.obscode ].changes[ memo.lang ] + '">' + i18n[ 'new' ][ memo.lang ] + '</button>' ); | |
+ | jQuery( '[data-toggle="tooltip"]' ).tooltip(); | ||
+ | } | ||
+ | } | ||
if (memo.graphType == 'trend') { | if (memo.graphType == 'trend') { | ||
Rivi 1 378: | Rivi 1 381: | ||
'axisTitleV': { 'fi': '', 'en': '', 'sv': '', 'ru': '' }, | 'axisTitleV': { 'fi': '', 'en': '', 'sv': '', 'ru': '' }, | ||
'changes': { | 'changes': { | ||
− | 'fi': ' | + | 'fi': '', |
− | 'en': ' | + | 'en': '', |
− | 'sv': ' | + | 'sv': '', |
'ru': '' | 'ru': '' | ||
}, | }, |