Commit | Line | Data |
---|---|---|
e471f286 | 1 | {if !$__imageViewerLoaded|isset} |
9543d9fe | 2 | <script data-relocate="true"> |
8139852e | 3 | var $imageViewer = null; |
e471f286 | 4 | $(function() { |
e471f286 | 5 | WCF.Language.addObject({ |
e2e8c155 MW |
6 | 'wcf.imageViewer.button.enlarge': '{jslang}wcf.imageViewer.button.enlarge{/jslang}', |
7 | 'wcf.imageViewer.button.full': '{jslang}wcf.imageViewer.button.full{/jslang}', | |
8 | 'wcf.imageViewer.seriesIndex': '{jslang __literal=true}wcf.imageViewer.seriesIndex{/jslang}', | |
c315b2ab | 9 | 'wcf.imageViewer.counter': '{jslang __literal=true}wcf.imageViewer.counter{/jslang}', |
e2e8c155 MW |
10 | 'wcf.imageViewer.close': '{jslang}wcf.imageViewer.close{/jslang}', |
11 | 'wcf.imageViewer.enlarge': '{jslang}wcf.imageViewer.enlarge{/jslang}', | |
12 | 'wcf.imageViewer.next': '{jslang}wcf.imageViewer.next{/jslang}', | |
13 | 'wcf.imageViewer.previous': '{jslang}wcf.imageViewer.previous{/jslang}' | |
e471f286 AE |
14 | }); |
15 | ||
8139852e | 16 | $imageViewer = new WCF.ImageViewer(); |
e471f286 | 17 | }); |
e471f286 AE |
18 | </script> |
19 | ||
20 | {assign var=__imageViewerLoaded value=true} | |
e2e8c155 | 21 | {/if} |