From 975cd22f9ad44fa61d4a541ef9c05b0c66c6ae52 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 14 Nov 2011 17:54:05 +0100 Subject: [PATCH] Changed data attributes to comply W3C norms --- wcfsetup/install/files/acp/js/WCF.ACP.js | 8 ++++---- wcfsetup/install/files/acp/templates/cacheList.tpl | 2 +- wcfsetup/install/files/acp/templates/cronjobList.tpl | 6 +++--- wcfsetup/install/files/acp/templates/header.tpl | 10 +++++----- .../install/files/acp/templates/optionTypeBoolean.tpl | 2 +- .../files/acp/templates/optionTypeRadiobuttons.tpl | 2 +- .../files/acp/templates/packageListDetailed.tpl | 2 +- .../install/files/acp/templates/packageListPlugins.tpl | 4 ++-- .../install/files/acp/templates/updateServerList.tpl | 4 ++-- .../files/acp/templates/userEmailAddressExport.tpl | 4 ++-- wcfsetup/install/files/acp/templates/userGroupList.tpl | 2 +- wcfsetup/install/files/acp/templates/userList.tpl | 2 +- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 6875ac28d3..3ce8636b08 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -95,15 +95,15 @@ WCF.ACP.Menu.prototype = { if (activeMenuItems.length === 0) { // show active menu - this._headerNavigation.find('li[data-menuItem="' + menuItem + '"]').addClass('activeMenuItem'); - this._sidebarNavigation.find('div[data-parentMenuItem="' + menuItem + '"]').show(); + this._headerNavigation.find('li[data-menu-item="' + menuItem + '"]').addClass('activeMenuItem'); + this._sidebarNavigation.find('div[data-parent-menu-item="' + menuItem + '"]').show(); } else { // open menu by active menu items, first element is always a head navigation item menuItem = activeMenuItems.shift(); - this._headerNavigation.find('li[data-menuItem="' + menuItem + '"]').addClass('activeMenuItem'); - this._sidebarNavigation.find('div[data-parentMenuItem="' + menuItem + '"]').show(); + this._headerNavigation.find('li[data-menu-item="' + menuItem + '"]').addClass('activeMenuItem'); + this._sidebarNavigation.find('div[data-parent-menu-item="' + menuItem + '"]').show(); for (var $i = 0, $size = activeMenuItems.length; $i < $size; $i++) { var $item = activeMenuItems[$i]; diff --git a/wcfsetup/install/files/acp/templates/cacheList.tpl b/wcfsetup/install/files/acp/templates/cacheList.tpl index 57a4adc904..91d6a00272 100644 --- a/wcfsetup/install/files/acp/templates/cacheList.tpl +++ b/wcfsetup/install/files/acp/templates/cacheList.tpl @@ -61,7 +61,7 @@ {counter name=cacheIndex assign=cacheIndex print=false start=0} {if $files|count}
- +

{$cache} {#$files|count}

diff --git a/wcfsetup/install/files/acp/templates/cronjobList.tpl b/wcfsetup/install/files/acp/templates/cronjobList.tpl index 628cea433c..985d6c00d2 100644 --- a/wcfsetup/install/files/acp/templates/cronjobList.tpl +++ b/wcfsetup/install/files/acp/templates/cronjobList.tpl @@ -72,13 +72,13 @@ {if $__wcf->session->getPermission('admin.system.cronjob.canEditCronjob')} - + {else} {/if} {if $cronjob->canBeDisabled()} - + {else} {if $cronjob->active} @@ -93,7 +93,7 @@ {/if} {if $cronjob->isDeletable()} - + {else} {/if} diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index ba49b791b4..f68f44ce53 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -121,7 +121,7 @@ {if PACKAGE_ID} {/if} @@ -151,18 +151,18 @@ {* work-around for unknown core-object during WCFSetup *} {if PACKAGE_ID} {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=parentMenuItem} -