// meta data
var $title = WCF.String.escapeHTML($image.image.title);
- if ($image.image.link) $title = '<a href="' + $image.image.link + '">' + $image.image.title + '</a>';
+ if ($image.image.link) $title = '<a href="' + $image.image.link + '">' + $title + '</a>';
this._ui.header.find('> div > h1').html($title);
- var $seriesTitle = ($image.series && $image.series.title ? WCF.String.escapeHTML($image.series.title) : '');
- if ($image.series.link) $seriesTitle = '<a href="' + $image.series.link + '">' + $seriesTitle + '</a>';
- this._ui.header.find('> div > h2').html($seriesTitle);
+ if (!this.options.staticViewer) {
+ var $seriesTitle = ($image.series && $image.series.title ? WCF.String.escapeHTML($image.series.title) : '');
+ if ($image.series.link) $seriesTitle = '<a href="' + $image.series.link + '">' + $seriesTitle + '</a>';
+ this._ui.header.find('> div > h2').html($seriesTitle);
+ }
this._ui.header.find('> div > h3').text(WCF.Language.get('wcf.imageViewer.seriesIndex').replace(/{x}/, $image.listItem.data('index') + 1).replace(/{y}/, this._items));