Fixed collapsible icons
authorMarcel Werk <burntime@woltlab.com>
Mon, 5 Sep 2011 18:05:24 +0000 (20:05 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 5 Sep 2011 18:05:24 +0000 (20:05 +0200)
wcfsetup/install/files/acp/templates/cacheList.tpl
wcfsetup/install/files/js/WCF.js

index b786254c1196d2de3e1f5c56d4e212810fca2d05..117618f7063ac1ef099e49b494b905769b03d5b7 100644 (file)
@@ -3,13 +3,10 @@
 <script type="text/javascript">
        //<![CDATA[
        $(function() {
-               {* TODO: Fix icon path *}
-               {* TODO: Please do not call these icons "plus" / "minus"! They may not look like that! Therefor i changed the names to "opened" / "closed". There should be a way to add a Suffix to the file name also, similar to the deprecated size-suffix (s, m, l). We now use the number suffix "1, 2, …". Strict names are not very useful here. *}
                WCF.Icon.addObject({
                        'wcf.global.opened': '{@RELATIVE_WCF_DIR}icon/opened2.svg',
                        'wcf.global.closed': '{@RELATIVE_WCF_DIR}icon/closed2.svg'
                });
-
                WCF.Collapsible.Simple.init();
        });
        //]]>
index 05b196fd9e8cf9fefef1f2ded470c3c342a3b76e..00903afa4ff52622173cf85bc5608e30c0efa437 100644 (file)
@@ -1562,13 +1562,13 @@ WCF.Collapsible.Simple = {
                
                if ($isOpen) {
                        $target.stop().wcfBlindOut('vertical', $.proxy(function() {
-                               this._toggleImage($button, 'wcf.global.plus');
+                               this._toggleImage($button, 'wcf.global.closed');
                        }, this));
                        $isOpen = false;
                }
                else {
                        $target.stop().wcfBlindIn('vertical', $.proxy(function() {
-                               this._toggleImage($button, 'wcf.global.minus');
+                               this._toggleImage($button, 'wcf.global.opened');
                        }, this));
                        $isOpen = true;
                }