From: Marcel Werk Date: Thu, 6 Jun 2013 23:06:00 +0000 (+0200) Subject: Icon optimizations X-Git-Tag: 2.0.0_Beta_4~111 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d3bd4037d31a5b6ab73c8eb8eedd8b4b5e4591c1;p=GitHub%2FWoltLab%2FWCF.git Icon optimizations --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index a9a7e5745b..28bdf0ca80 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -2125,10 +2125,10 @@ WCF.ACP.User.EnableHandler = { var $button = $(button); if (WCF.inArray($button.data('objectID'), data.objectIDs)) { if (data.actionName == 'disable') { - $button.data('enabled', false).data('tooltip', $button.data('enableMessage')).removeClass('icon-circle-blank').addClass('icon-off'); + $button.data('enabled', false).data('tooltip', $button.data('enableMessage')).removeClass('icon-check').addClass('icon-check-empty'); } else { - $button.data('enabled', true).data('tooltip', $button.data('disableMessage')).removeClass('icon-off').addClass('icon-circle-blank'); + $button.data('enabled', true).data('tooltip', $button.data('disableMessage')).removeClass('icon-check-empty').addClass('icon-check'); } } }); diff --git a/wcfsetup/install/files/acp/templates/bbcodeList.tpl b/wcfsetup/install/files/acp/templates/bbcodeList.tpl index 1a75dcca12..1ec8afc882 100644 --- a/wcfsetup/install/files/acp/templates/bbcodeList.tpl +++ b/wcfsetup/install/files/acp/templates/bbcodeList.tpl @@ -46,7 +46,7 @@ {foreach from=$objects item=bbcode} - + diff --git a/wcfsetup/install/files/acp/templates/categoryList.tpl b/wcfsetup/install/files/acp/templates/categoryList.tpl index 42ee5ded68..9ce3114182 100644 --- a/wcfsetup/install/files/acp/templates/categoryList.tpl +++ b/wcfsetup/install/files/acp/templates/categoryList.tpl @@ -114,7 +114,7 @@ {/if} {if $objectType->getProcessor()->canEditCategory()} - + {/if} {event name='itemButtons'} diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index 8f14d8fd8c..4f109da109 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -58,12 +58,12 @@ {if $cronjob->canBeDisabled()} - + {else} {if !$cronjob->isDisabled} - + {else} - + {/if} {/if} diff --git a/wcfsetup/install/files/acp/templates/languageServerList.tpl b/wcfsetup/install/files/acp/templates/languageServerList.tpl index 46cb9b6b2e..8408043a6b 100644 --- a/wcfsetup/install/files/acp/templates/languageServerList.tpl +++ b/wcfsetup/install/files/acp/templates/languageServerList.tpl @@ -46,7 +46,7 @@ {foreach from=$languageServers item=languageServer} - + diff --git a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl index 5e2d33a7e7..0b1f387685 100644 --- a/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl +++ b/wcfsetup/install/files/acp/templates/packageUpdateServerList.tpl @@ -54,7 +54,7 @@ {foreach from=$objects item=updateServer} - + diff --git a/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl b/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl index c33f0d9d87..07a53fd125 100644 --- a/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl +++ b/wcfsetup/install/files/acp/templates/pageMenuItemList.tpl @@ -45,9 +45,9 @@ {lang}{$menuItem->menuItem}{/lang} {if $menuItem->canDisable()} - + {else} - + {/if} {if $menuItem->canDelete()} @@ -66,7 +66,7 @@ {lang}{$childMenuItem->menuItem}{/lang} - + @@ -101,7 +101,7 @@ {lang}{$menuItem->menuItem}{/lang} - + diff --git a/wcfsetup/install/files/acp/templates/styleList.tpl b/wcfsetup/install/files/acp/templates/styleList.tpl index 71f2684286..941403a472 100644 --- a/wcfsetup/install/files/acp/templates/styleList.tpl +++ b/wcfsetup/install/files/acp/templates/styleList.tpl @@ -44,7 +44,7 @@
  • {if !$style->isDefault} -
  • +
  • {/if} diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index ad4ca8ac9e..f64a255ea1 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -99,9 +99,9 @@ {/if} {if $__wcf->session->getPermission('admin.user.canEnableUser')} {if $user->userID != $__wcf->user->userID} - + {else} - + {/if} {/if} diff --git a/wcfsetup/install/files/acp/templates/userOptionList.tpl b/wcfsetup/install/files/acp/templates/userOptionList.tpl index 0d1e871390..424b1bc749 100644 --- a/wcfsetup/install/files/acp/templates/userOptionList.tpl +++ b/wcfsetup/install/files/acp/templates/userOptionList.tpl @@ -48,7 +48,7 @@ {foreach from=$objects item=option} - + diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index cc930ff78b..56fe5f9cd3 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2322,13 +2322,13 @@ WCF.Action.Toggle = Class.extend({ _toggleButton: function($container, $toggleButton) { // toggle icon source WCF.LoadingOverlayHandler.updateIcon($toggleButton, false); - if ($toggleButton.hasClass('icon-off')) { - $toggleButton.removeClass('icon-off').addClass('icon-circle-blank'); + if ($toggleButton.hasClass('icon-check-empty')) { + $toggleButton.removeClass('icon-check-empty').addClass('icon-check'); $newTitle = ($toggleButton.data('disableTitle') ? $toggleButton.data('disableTitle') : WCF.Language.get('wcf.global.button.disable')); $toggleButton.attr('title', $newTitle); } else { - $toggleButton.removeClass('icon-circle-blank').addClass('icon-off'); + $toggleButton.removeClass('icon-check').addClass('icon-check-empty'); $newTitle = ($toggleButton.data('enableTitle') ? $toggleButton.data('enableTitle') : WCF.Language.get('wcf.global.button.enable')); $toggleButton.attr('title', $newTitle); }