Moved icons from wcfPages to WCF.Icon
authorAlexander Ebert <ebert@woltlab.com>
Tue, 18 Oct 2011 20:07:48 +0000 (22:07 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 18 Oct 2011 20:07:48 +0000 (22:07 +0200)
Closes #221

wcfsetup/install/files/acp/templates/packageList.tpl
wcfsetup/install/files/js/WCF.js

index a46af546814eea79faa44d7496405dc1e3aa8c77..47e9ac28469eb1e70d70d82c2644e05ebde4ea9c 100644 (file)
@@ -9,6 +9,13 @@
                new WCF.ACP.PackageUninstallation($('.package .uninstallButton'));
 
                {if $pluginsCount > 1}
+                       WCF.Icon.addObject({
+                               'wcf.icon.arrow.down': 'icon/dropDown1.svg',
+                               'wcf.icon.next': 'icon/next1.svg',
+                               'wcf.icon.next.disabled': 'icon/next1D.svg',
+                               'wcf.icon.previous': 'icon/previous1.svg',
+                               'wcf.icon.previous.disabled': 'icon/previous1D.svg'
+                       });
                        new WCF.ACP.Package.List({@($pluginsCount / 1)|ceil});
                {/if}
        });
index 5eca4be532fdf4a85555297ae42b2600cf76203e..dc0d0ef1799c10648263ee61bf232f238a1046f2 100644 (file)
@@ -2950,11 +2950,11 @@ $.widget('ui.wcfPages', {
                maxPage: 1,
                
                // icons
-               previousIcon: RELATIVE_WCF_DIR + 'icon/previous1.svg',
-               previousDisabledIcon: RELATIVE_WCF_DIR + 'icon/previous1D.svg',
-               arrowDownIcon: RELATIVE_WCF_DIR + 'icon/dropDown1.svg',
-               nextIcon: RELATIVE_WCF_DIR + 'icon/next1.svg',
-               nextDisabledIcon: RELATIVE_WCF_DIR + 'icon/next1D.svg',
+               previousIcon: WCF.Icon.get('wcf.icon.previous'),
+               previousDisabledIcon: WCF.Icon.get('wcf.icon.previous.disabled'),
+               arrowDownIcon: WCF.Icon.get('wcf.icon.arrow.down'),
+               nextIcon: WCF.Icon.get('wcf.icon.next'),
+               nextDisabledIcon: WCF.Icon.get('wcf.icon.next.disabled'),
                
                // language
                // we use options here instead of language variables, because the paginator is not only usable with pages