ImageViewer is now stored within $imageViewer
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Sep 2012 21:39:09 +0000 (23:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Sep 2012 21:39:09 +0000 (23:39 +0200)
https://www.woltlab.com/bugtracker/index.php?page=Bug&bugID=1225

com.woltlab.wcf/template/imageViewer.tpl

index ac67389ecab1422bdec4d9a599d284304b7cae66..8fcd1a1904db6418bf2ec40874c818a7d3c51f4a 100644 (file)
@@ -3,6 +3,7 @@
        <script type="text/javascript" src="{@$__wcf->getPath()}js/WCF.ImageViewer.js"></script>
        <script type="text/javascript">
                //<![CDATA[
+               var $imageViewer = null;
                $(function() {
                        WCF.Icon.addObject({
                                'wcf.icon.arrowLeftColored': '{icon}arrowLeftColored{/icon}',
@@ -18,7 +19,7 @@
                                'wcf.imageViewer.previous': '{lang}wcf.imageViewer.previous{/lang}'
                        });
                        
-                       new WCF.ImageViewer();
+                       $imageViewer = new WCF.ImageViewer();
                });
                //]]>
        </script>